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
@@ -45,8 +49,10 @@ android {
45
49
" -Xopt-in=kotlin.ExperimentalStdlibApi" ,
46
50
" -Xopt-in=kotlin.time.ExperimentalTime" ,
47
51
" -Xopt-in=kotlinx.coroutines.FlowPreview" ,
48
- " -Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
52
+ " -Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" ,
53
+ " -Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi"
49
54
]
55
+ useIR = true
50
56
}
51
57
testOptions {
52
58
unitTests {
@@ -105,6 +111,9 @@ android {
105
111
exclude ' **/NOTICE.txt'
106
112
exclude ' **/*.gwt.xml'
107
113
}
114
+ composeOptions {
115
+ kotlinCompilerExtensionVersion Versions . androidXCompose
116
+ }
108
117
}
109
118
110
119
dependencies {
@@ -136,17 +145,31 @@ dependencies {
136
145
implementation Libs . androidx_fragment
137
146
implementation Libs . androidx_hilt_work
138
147
implementation Libs . androidx_lifecycle_viewmodel
148
+ implementation Libs . androidx_lifecycle_livedata
139
149
implementation Libs . androidx_lifecycle_java8
150
+ implementation Libs . androidx_lifecycle_runtime
140
151
implementation Libs . androidx_lifecycle_process
141
152
implementation Libs . androidx_navigation_fragment
142
153
implementation Libs . androidx_navigation_ui
154
+ implementation " androidx.navigation:navigation-compose:$Versions . androidXNavigation "
143
155
implementation Libs . androidx_preference
144
156
implementation Libs . androidx_recyclerview
145
157
implementation Libs . androidx_recyclerview_selection
146
158
implementation Libs . androidx_room_runtime
147
159
implementation Libs . androidx_room_ktx
148
160
implementation Libs . androidx_work_runtime
149
161
implementation Libs . androidx_work_gcm
162
+ implementation ' com.google.android.material:material:1.3.0'
163
+ implementation ' androidx.activity:activity-compose:1.3.0-beta02'
164
+ implementation " androidx.compose.ui:ui:$Versions . androidXCompose "
165
+ implementation " androidx.compose.foundation:foundation:$Versions . androidXCompose "
166
+ implementation " androidx.compose.material:material:$Versions . androidXCompose "
167
+ implementation " androidx.compose.material:material-icons-core:$Versions . androidXCompose "
168
+ implementation " androidx.compose.material:material-icons-extended:$Versions . androidXCompose "
169
+ implementation " androidx.compose.ui:ui-tooling:$Versions . androidXCompose "
170
+ implementation ' androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha07'
171
+ implementation ' androidx.hilt:hilt-navigation-compose:1.0.0-alpha03'
172
+ androidTestImplementation " androidx.compose.ui:ui-test-junit4:$Versions . androidXCompose "
150
173
kapt Libs . androidx_room_compiler
151
174
kapt Libs . androidx_hilt_compiler
152
175
@@ -182,8 +205,8 @@ dependencies {
182
205
implementation Libs . kotlinCoroutinesAndroid
183
206
184
207
// LeakCanary
185
- debugImplementation Libs . leakCanary
186
- implementation Libs . leakCanaryPlumberAndroid
208
+ // debugImplementation Libs.leakCanary
209
+ // implementation Libs.leakCanaryPlumberAndroid
187
210
188
211
// Logging
189
212
implementation Libs . slf4jAndroidLogger
0 commit comments