-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
109 lines (90 loc) · 3.74 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-parcelize'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
id 'androidx.navigation.safeargs.kotlin'
}
android {
compileSdkVersion 30
defaultConfig {
applicationId "ml.zedlabs.statetestcompose"
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
useIR = true
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
//freeCompilerArgs += "-Xallow-unstable-dependencies"
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion compose
kotlinCompilerVersion '1.4.30'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
// Fragment
implementation "androidx.fragment:fragment-ktx:$fragmentVersion"
// Lifecycle + LiveData
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
// Navigation Component
implementation "androidx.navigation:navigation-compose:1.0.0-alpha10"
//retrofit
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.8.0'
//moshi converter
implementation "com.squareup.retrofit2:converter-moshi:2.9.0"
// Room
implementation "androidx.room:room-runtime:$roomVersion"
kapt "androidx.room:room-compiler:$roomVersion"
implementation "androidx.room:room-ktx:$roomVersion"
// Coroutines
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
// Dagger Hilt
implementation "com.google.dagger:hilt-android:$hiltVersion"
kapt "com.google.dagger:hilt-android-compiler:$hiltVersion"
implementation "androidx.hilt:hilt-lifecycle-viewmodel:$hiltAndroidXVersion"
implementation "androidx.hilt:hilt-navigation:$hiltAndroidXVersion"
implementation "androidx.hilt:hilt-navigation-fragment:1.0.0-beta01"
kapt "androidx.hilt:hilt-compiler:$hiltAndroidXVersion"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0-alpha01"
implementation "androidx.hilt:hilt-common:1.0.0-beta01"
kapt "com.google.dagger:hilt-compiler:2.33-beta"
// DataStore
// implementation "androidx.datastore:datastore-preferences:$dataStoreVersion"
// JetPack Compose
implementation "androidx.compose.ui:ui:$compose"
implementation "androidx.compose.foundation:foundation:$compose"
implementation "androidx.compose.runtime:runtime-livedata:$compose"
implementation "androidx.compose.material:material:$compose"
implementation "androidx.compose.material:material-icons-core:$compose"
implementation "androidx.compose.material:material-icons-extended:$compose"
implementation 'androidx.activity:activity-compose:1.3.0-alpha06'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}