Skip to content

Commit 72fa1ce

Browse files
Initial commit
0 parents  commit 72fa1ce

File tree

106 files changed

+4080
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+4080
-0
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'kotlin-android'
4+
id 'kotlin-kapt'
5+
id 'dagger.hilt.android.plugin'
6+
id 'kotlinx-serialization'
7+
}
8+
9+
android {
10+
compileSdk 31
11+
12+
defaultConfig {
13+
applicationId "com.example.attackontitanapp"
14+
minSdk 23
15+
targetSdk 31
16+
versionCode 1
17+
versionName "1.0"
18+
19+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20+
vectorDrawables {
21+
useSupportLibrary true
22+
}
23+
}
24+
25+
buildTypes {
26+
release {
27+
minifyEnabled false
28+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
29+
}
30+
}
31+
compileOptions {
32+
sourceCompatibility JavaVersion.VERSION_1_8
33+
targetCompatibility JavaVersion.VERSION_1_8
34+
}
35+
kotlinOptions {
36+
jvmTarget = '1.8'
37+
useIR = true
38+
}
39+
buildFeatures {
40+
compose true
41+
}
42+
composeOptions {
43+
kotlinCompilerExtensionVersion compose_version
44+
kotlinCompilerVersion '1.5.21'
45+
}
46+
packagingOptions {
47+
resources {
48+
excludes += '/META-INF/{AL2.0,LGPL2.1}'
49+
}
50+
}
51+
}
52+
53+
dependencies {
54+
55+
implementation 'androidx.core:core-ktx:1.7.0'
56+
implementation 'androidx.appcompat:appcompat:1.4.1'
57+
implementation 'com.google.android.material:material:1.5.0'
58+
implementation "androidx.compose.ui:ui:$compose_version"
59+
implementation "androidx.compose.material:material:$compose_version"
60+
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
61+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0'
62+
implementation 'androidx.activity:activity-compose:1.4.0'
63+
testImplementation 'junit:junit:4.13.2'
64+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
65+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
66+
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
67+
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
68+
69+
// Compose Navigation
70+
implementation("androidx.navigation:navigation-compose:2.4.0-rc01")
71+
72+
// Room components
73+
implementation "androidx.room:room-runtime:2.3.0"
74+
kapt "androidx.room:room-compiler:2.3.0"
75+
implementation "androidx.room:room-ktx:2.3.0"
76+
77+
// Retrofit
78+
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
79+
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
80+
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0")
81+
82+
// Paging 3.0
83+
implementation 'androidx.paging:paging-compose:1.0.0-alpha14'
84+
85+
// KotlinX Serialization
86+
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.0"
87+
88+
// DataStore Preferences
89+
implementation("androidx.datastore:datastore-preferences:1.0.0")
90+
91+
// Dagger - Hilt
92+
implementation "com.google.dagger:hilt-android:2.38.1"
93+
kapt "com.google.dagger:hilt-android-compiler:2.38.1"
94+
kapt 'androidx.hilt:hilt-compiler:1.0.0'
95+
implementation 'androidx.hilt:hilt-navigation-compose:1.0.0-rc01'
96+
97+
// Coil
98+
implementation("io.coil-kt:coil-compose:1.3.2")
99+
100+
// Horizontal Pager and Indicators - Accompanist
101+
implementation "com.google.accompanist:accompanist-pager:$accompanist_version"
102+
implementation "com.google.accompanist:accompanist-pager-indicators:$accompanist_version"
103+
104+
// Swipe to Refresh - Accompanist
105+
implementation "com.google.accompanist:accompanist-swiperefresh:$accompanist_version"
106+
107+
// System UI Controller - Accompanist
108+
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
109+
110+
// Palette API
111+
implementation "androidx.palette:palette-ktx:1.0.0"
112+
113+
// Testing
114+
androidTestImplementation "androidx.test:runner:1.4.0"
115+
androidTestImplementation "androidx.test:rules:1.4.0"
116+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
117+
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
118+
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
119+
120+
testImplementation 'junit:junit:4.13.2'
121+
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
122+
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.2"
123+
}

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.example.attackontitanapp
2+
3+
import androidx.test.platform.app.InstrumentationRegistry
4+
import androidx.test.ext.junit.runners.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22+
assertEquals("com.example.attackontitanapp", appContext.packageName)
23+
}
24+
}

0 commit comments

Comments
 (0)