11apply plugin : ' com.android.application'
22apply plugin : ' kotlin-android'
33apply plugin : ' kotlin-kapt'
4- apply plugin : " androidx.navigation.safeargs.kotlin "
4+ apply plugin : " androidx.navigation.safeargs"
55apply plugin : ' com.google.firebase.crashlytics'
66apply plugin : ' com.google.gms.google-services'
77apply plugin : ' dagger.hilt.android.plugin'
8- apply plugin : ' com.mikepenz.aboutlibraries.plugin'
98apply plugin : ' com.google.firebase.firebase-perf'
109apply plugin : ' com.github.triplet.play'
1110
@@ -28,10 +27,15 @@ android {
2827 // Version info
2928 buildConfigField ' String' , ' GIT_SHA' , " \" ${ project.ext.gitHash} \" "
3029
30+ vectorDrawables {
31+ useSupportLibrary true
32+ }
33+
3134 javaCompileOptions. annotationProcessorOptions. arguments[' room.schemaLocation' ] = rootProject. file(' schemas' ). toString()
3235 }
3336 buildFeatures {
3437 viewBinding true
38+ compose true
3539 }
3640 compileOptions {
3741 sourceCompatibility = JavaVersion . VERSION_1_8
@@ -47,6 +51,7 @@ android {
4751 " -Xopt-in=kotlinx.coroutines.FlowPreview" ,
4852 " -Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
4953 ]
54+ useIR = true
5055 }
5156 testOptions {
5257 unitTests {
@@ -105,6 +110,9 @@ android {
105110 exclude ' **/NOTICE.txt'
106111 exclude ' **/*.gwt.xml'
107112 }
113+ composeOptions {
114+ kotlinCompilerExtensionVersion Versions . androidXCompose
115+ }
108116}
109117
110118dependencies {
@@ -136,17 +144,31 @@ dependencies {
136144 implementation Libs . androidx_fragment
137145 implementation Libs . androidx_hilt_work
138146 implementation Libs . androidx_lifecycle_viewmodel
147+ implementation Libs . androidx_lifecycle_livedata
139148 implementation Libs . androidx_lifecycle_java8
149+ implementation Libs . androidx_lifecycle_runtime
140150 implementation Libs . androidx_lifecycle_process
141151 implementation Libs . androidx_navigation_fragment
142152 implementation Libs . androidx_navigation_ui
153+ implementation " androidx.navigation:navigation-compose:$Versions . androidXNavigation "
143154 implementation Libs . androidx_preference
144155 implementation Libs . androidx_recyclerview
145156 implementation Libs . androidx_recyclerview_selection
146157 implementation Libs . androidx_room_runtime
147158 implementation Libs . androidx_room_ktx
148159 implementation Libs . androidx_work_runtime
149160 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 "
150172 kapt Libs . androidx_room_compiler
151173 kapt Libs . androidx_hilt_compiler
152174
@@ -182,8 +204,8 @@ dependencies {
182204 implementation Libs . kotlinCoroutinesAndroid
183205
184206 // LeakCanary
185- debugImplementation Libs . leakCanary
186- implementation Libs . leakCanaryPlumberAndroid
207+ // debugImplementation Libs.leakCanary
208+ // implementation Libs.leakCanaryPlumberAndroid
187209
188210 // Logging
189211 implementation Libs . slf4jAndroidLogger
0 commit comments