|
@@ -24,6 +24,11 @@ android {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ buildFeatures {
|
|
|
+ viewBinding true
|
|
|
+ compose true
|
|
|
+ buildConfig false
|
|
|
+ }
|
|
|
signingConfigs {
|
|
|
config {
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
@@ -32,7 +37,6 @@ android {
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
buildTypes {
|
|
|
debug {
|
|
|
minifyEnabled false
|
|
@@ -50,18 +54,42 @@ android {
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
}
|
|
|
+ composeOptions {
|
|
|
+ kotlinCompilerExtensionVersion compose_version
|
|
|
+ kotlinCompilerVersion kotlin_version
|
|
|
+ }
|
|
|
kotlinOptions {
|
|
|
jvmTarget = '1.8'
|
|
|
+ useIR = true
|
|
|
+ }
|
|
|
+ packagingOptions {
|
|
|
+ resources {
|
|
|
+ excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
+
|
|
|
+ implementation project(':flutter')
|
|
|
+
|
|
|
// ktx
|
|
|
api rootProject.ext.ktxLibs
|
|
|
// jetpack
|
|
|
api rootProject.ext.jetpackLibs
|
|
|
// ui
|
|
|
api rootProject.ext.uiLibs
|
|
|
+
|
|
|
+ implementation "androidx.compose.material:material:$compose_version"
|
|
|
+ implementation 'androidx.activity:activity-compose:1.4.0'
|
|
|
+ implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
|
|
|
+ implementation "androidx.compose.ui:ui:$compose_version"
|
|
|
+ implementation "androidx.compose.ui:ui-tooling:$compose_version"
|
|
|
+ implementation "androidx.compose.runtime:runtime:$compose_version"
|
|
|
+ implementation "androidx.compose.runtime:runtime-livedata:$compose_version"
|
|
|
+ implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.4.0"
|
|
|
+
|
|
|
+ debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
|
|
|
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
|
|
|
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
|
}
|