1
1
apply plugin : ' com.android.application'
2
2
apply plugin : ' kotlin-android'
3
3
apply plugin : ' kotlin-kapt'
4
- apply plugin : " androidx.navigation.safeargs.kotlin "
4
+ apply plugin : " androidx.navigation.safeargs"
5
5
apply plugin : ' com.google.firebase.crashlytics'
6
6
apply plugin : ' com.google.gms.google-services'
7
7
apply plugin : ' dagger.hilt.android.plugin'
8
- apply plugin : ' com.mikepenz.aboutlibraries.plugin'
9
8
apply plugin : ' com.google.firebase.firebase-perf'
10
9
apply plugin : ' com.github.triplet.play'
11
10
@@ -28,10 +27,15 @@ android {
28
27
// Version info
29
28
buildConfigField ' String' , ' GIT_SHA' , " \" ${ project.ext.gitHash} \" "
30
29
30
+ vectorDrawables {
31
+ useSupportLibrary true
32
+ }
33
+
31
34
javaCompileOptions. annotationProcessorOptions. arguments[' room.schemaLocation' ] = rootProject. file(' schemas' ). toString()
32
35
}
33
36
buildFeatures {
34
37
viewBinding true
38
+ compose true
35
39
}
36
40
compileOptions {
37
41
sourceCompatibility = JavaVersion . VERSION_1_8
@@ -47,6 +51,7 @@ android {
47
51
" -Xopt-in=kotlinx.coroutines.FlowPreview" ,
48
52
" -Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
49
53
]
54
+ useIR = true
50
55
}
51
56
testOptions {
52
57
unitTests {
@@ -105,6 +110,9 @@ android {
105
110
exclude ' **/NOTICE.txt'
106
111
exclude ' **/*.gwt.xml'
107
112
}
113
+ composeOptions {
114
+ kotlinCompilerExtensionVersion Versions . androidXCompose
115
+ }
108
116
}
109
117
110
118
dependencies {
@@ -136,17 +144,31 @@ dependencies {
136
144
implementation Libs . androidx_fragment
137
145
implementation Libs . androidx_hilt_work
138
146
implementation Libs . androidx_lifecycle_viewmodel
147
+ implementation Libs . androidx_lifecycle_livedata
139
148
implementation Libs . androidx_lifecycle_java8
149
+ implementation Libs . androidx_lifecycle_runtime
140
150
implementation Libs . androidx_lifecycle_process
141
151
implementation Libs . androidx_navigation_fragment
142
152
implementation Libs . androidx_navigation_ui
153
+ implementation " androidx.navigation:navigation-compose:$Versions . androidXNavigation "
143
154
implementation Libs . androidx_preference
144
155
implementation Libs . androidx_recyclerview
145
156
implementation Libs . androidx_recyclerview_selection
146
157
implementation Libs . androidx_room_runtime
147
158
implementation Libs . androidx_room_ktx
148
159
implementation Libs . androidx_work_runtime
149
160
implementation Libs . androidx_work_gcm
161
+ implementation ' com.google.android.material:material:1.3.0'
162
+ implementation ' androidx.activity:activity-compose:1.3.0-alpha08'
163
+ implementation " androidx.compose.ui:ui:$Versions . androidXCompose "
164
+ implementation " androidx.compose.foundation:foundation:$Versions . androidXCompose "
165
+ implementation " androidx.compose.material:material:$Versions . androidXCompose "
166
+ implementation " androidx.compose.material:material-icons-core:$Versions . androidXCompose "
167
+ implementation " androidx.compose.material:material-icons-extended:$Versions . androidXCompose "
168
+ implementation " androidx.compose.ui:ui-tooling:$Versions . androidXCompose "
169
+ implementation ' androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha05'
170
+ implementation ' androidx.hilt:hilt-navigation-compose:1.0.0-alpha02'
171
+ androidTestImplementation " androidx.compose.ui:ui-test-junit4:$Versions . androidXCompose "
150
172
kapt Libs . androidx_room_compiler
151
173
kapt Libs . androidx_hilt_compiler
152
174
@@ -182,8 +204,8 @@ dependencies {
182
204
implementation Libs . kotlinCoroutinesAndroid
183
205
184
206
// LeakCanary
185
- debugImplementation Libs . leakCanary
186
- implementation Libs . leakCanaryPlumberAndroid
207
+ // debugImplementation Libs.leakCanary
208
+ // implementation Libs.leakCanaryPlumberAndroid
187
209
188
210
// Logging
189
211
implementation Libs . slf4jAndroidLogger
0 commit comments