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'
10+ apply plugin : ' com.dicedmelon.gradle.jacoco-android'
1111
1212android {
1313 compileSdkVersion Config . compile_sdk
@@ -28,10 +28,15 @@ android {
2828 // Version info
2929 buildConfigField ' String' , ' GIT_SHA' , " \" ${ project.ext.gitHash} \" "
3030
31+ vectorDrawables {
32+ useSupportLibrary true
33+ }
34+
3135 javaCompileOptions. annotationProcessorOptions. arguments[' room.schemaLocation' ] = rootProject. file(' schemas' ). toString()
3236 }
3337 buildFeatures {
3438 viewBinding true
39+ compose true
3540 }
3641 compileOptions {
3742 sourceCompatibility = JavaVersion . VERSION_1_8
@@ -45,8 +50,12 @@ android {
4550 " -Xopt-in=kotlin.ExperimentalStdlibApi" ,
4651 " -Xopt-in=kotlin.time.ExperimentalTime" ,
4752 " -Xopt-in=kotlinx.coroutines.FlowPreview" ,
48- " -Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
53+ " -Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi" ,
54+ " -Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi" ,
55+ " -Xopt-in=androidx.compose.animation.ExperimentalAnimationApi" ,
56+ " -Xopt-in=androidx.compose.material.ExperimentalMaterialApi"
4957 ]
58+ useIR = true
5059 }
5160 testOptions {
5261 unitTests {
@@ -105,6 +114,9 @@ android {
105114 exclude ' **/NOTICE.txt'
106115 exclude ' **/*.gwt.xml'
107116 }
117+ composeOptions {
118+ kotlinCompilerExtensionVersion Versions . androidXCompose
119+ }
108120}
109121
110122dependencies {
@@ -133,20 +145,38 @@ dependencies {
133145 implementation Libs . androidx_browser
134146 implementation Libs . androidx_constraint_layout
135147 implementation Libs . androidx_core
148+ implementation " androidx.core:core-splashscreen:1.0.0-alpha01"
136149 implementation Libs . androidx_fragment
137150 implementation Libs . androidx_hilt_work
138151 implementation Libs . androidx_lifecycle_viewmodel
152+ implementation Libs . androidx_lifecycle_livedata
139153 implementation Libs . androidx_lifecycle_java8
154+ implementation Libs . androidx_lifecycle_runtime
140155 implementation Libs . androidx_lifecycle_process
141156 implementation Libs . androidx_navigation_fragment
142157 implementation Libs . androidx_navigation_ui
158+ implementation " androidx.navigation:navigation-compose:$Versions . androidXNavigation "
143159 implementation Libs . androidx_preference
144160 implementation Libs . androidx_recyclerview
145161 implementation Libs . androidx_recyclerview_selection
146162 implementation Libs . androidx_room_runtime
147163 implementation Libs . androidx_room_ktx
148164 implementation Libs . androidx_work_runtime
149165 implementation Libs . androidx_work_gcm
166+ implementation ' com.google.android.material:material:1.4.0'
167+ implementation ' androidx.activity:activity-compose:1.3.0-rc01'
168+ implementation " androidx.compose.ui:ui:$Versions . androidXCompose "
169+ implementation " androidx.compose.foundation:foundation:$Versions . androidXCompose "
170+ implementation " androidx.compose.material:material:$Versions . androidXCompose "
171+ implementation " androidx.compose.material:material-icons-core:$Versions . androidXCompose "
172+ implementation " androidx.compose.material:material-icons-extended:$Versions . androidXCompose "
173+ // implementation "androidx.compose.ui:ui-tooling:$Versions.androidXCompose"
174+ implementation " androidx.compose.ui:ui-tooling:1.0.0-beta09"
175+ implementation " com.google.accompanist:accompanist-insets:0.13.0"
176+
177+ implementation ' androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha07'
178+ implementation ' androidx.hilt:hilt-navigation-compose:1.0.0-alpha03'
179+ androidTestImplementation " androidx.compose.ui:ui-test-junit4:$Versions . androidXCompose "
150180 kapt Libs . androidx_room_compiler
151181 kapt Libs . androidx_hilt_compiler
152182
@@ -182,8 +212,8 @@ dependencies {
182212 implementation Libs . kotlinCoroutinesAndroid
183213
184214 // LeakCanary
185- debugImplementation Libs . leakCanary
186- implementation Libs . leakCanaryPlumberAndroid
215+ // debugImplementation Libs.leakCanary
216+ // implementation Libs.leakCanaryPlumberAndroid
187217
188218 // Logging
189219 implementation Libs . slf4jAndroidLogger
@@ -200,6 +230,10 @@ kapt {
200230 correctErrorTypes true
201231}
202232
233+ jacoco {
234+ toolVersion = " 0.8.7"
235+ }
236+
203237play {
204238 def serviceAccountFileName = " google-play-api.json"
205239 if (rootProject. file(serviceAccountFileName). exists()) {
0 commit comments