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
@@ -45,8 +49,10 @@ android {
4549 " -Xopt-in=kotlin.ExperimentalStdlibApi" ,
4650 " -Xopt-in=kotlin.time.ExperimentalTime" ,
4751 " -Xopt-in=kotlinx.coroutines.FlowPreview" ,
48- " -Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
52+ " -Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" ,
53+ " -Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi"
4954 ]
55+ useIR = true
5056 }
5157 testOptions {
5258 unitTests {
@@ -105,6 +111,9 @@ android {
105111 exclude ' **/NOTICE.txt'
106112 exclude ' **/*.gwt.xml'
107113 }
114+ composeOptions {
115+ kotlinCompilerExtensionVersion Versions . androidXCompose
116+ }
108117}
109118
110119dependencies {
@@ -136,17 +145,31 @@ dependencies {
136145 implementation Libs . androidx_fragment
137146 implementation Libs . androidx_hilt_work
138147 implementation Libs . androidx_lifecycle_viewmodel
148+ implementation Libs . androidx_lifecycle_livedata
139149 implementation Libs . androidx_lifecycle_java8
150+ implementation Libs . androidx_lifecycle_runtime
140151 implementation Libs . androidx_lifecycle_process
141152 implementation Libs . androidx_navigation_fragment
142153 implementation Libs . androidx_navigation_ui
154+ implementation " androidx.navigation:navigation-compose:$Versions . androidXNavigation "
143155 implementation Libs . androidx_preference
144156 implementation Libs . androidx_recyclerview
145157 implementation Libs . androidx_recyclerview_selection
146158 implementation Libs . androidx_room_runtime
147159 implementation Libs . androidx_room_ktx
148160 implementation Libs . androidx_work_runtime
149161 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 "
150173 kapt Libs . androidx_room_compiler
151174 kapt Libs . androidx_hilt_compiler
152175
@@ -182,8 +205,8 @@ dependencies {
182205 implementation Libs . kotlinCoroutinesAndroid
183206
184207 // LeakCanary
185- debugImplementation Libs . leakCanary
186- implementation Libs . leakCanaryPlumberAndroid
208+ // debugImplementation Libs.leakCanary
209+ // implementation Libs.leakCanaryPlumberAndroid
187210
188211 // Logging
189212 implementation Libs . slf4jAndroidLogger
0 commit comments