66import tm.alashow.buildSrc.App
77import tm.alashow.buildSrc.Deps
88
9- plugins {
10- id(" com.android.application" )
11- id(" dagger.hilt.android.plugin" )
12- id(" kotlin-android" )
13- id(" kotlin-kapt" )
14- id(" kotlin-parcelize" )
15- id(" org.jetbrains.kotlin.plugin.serialization" )
16- id(" androidx.navigation.safeargs.kotlin" )
17- }
18-
19- apply plugin : " com.github.triplet.play"
20- play {
21- defaultToAppBundles = true
22- track = prop(" PUBLISH_TRACK" , " alpha" )
23- serviceAccountCredentials = rootProject. file(" signing/play-account.json" )
24- }
25-
9+ apply plugin : " com.android.application"
10+ apply plugin : " dagger.hilt.android.plugin"
11+ apply plugin : " kotlin-parcelize"
12+ apply plugin : " org.jetbrains.kotlin.plugin.serialization"
13+ apply plugin : " com.google.devtools.ksp"
14+ apply plugin : " org.jetbrains.kotlin.plugin.compose"
2615
2716def gitSha = " git rev-parse --short HEAD" . execute([], project. rootDir). text. trim()
2817
@@ -37,7 +26,6 @@ android {
3726 targetSdkVersion(App . targetSdkVersion)
3827 minSdkVersion(App . minSdkVersion)
3928
40- multiDexEnabled = true
4129 vectorDrawables. useSupportLibrary = true
4230 }
4331
@@ -48,18 +36,9 @@ android {
4836 main. res. srcDirs + = " src/main/res-drawable"
4937 }
5038
51- compileOptions {
52- sourceCompatibility = 1.8
53- targetCompatibility = 1.8
54- }
55-
56-
5739 buildFeatures {
5840 compose = true
59- }
60-
61- composeOptions {
62- kotlinCompilerExtensionVersion = Deps.Android.Compose . compilerVersion
41+ buildConfig = true
6342 }
6443
6544 signingConfigs {
@@ -83,17 +62,13 @@ android {
8362 signingConfig = signingConfigs. debug
8463 versionNameSuffix = " -DEBUG"
8564 applicationIdSuffix = " .debug"
86-
87- multiDexKeepProguard = file(" multidex-config.pro" )
8865 }
8966
9067 release {
9168 signingConfig = signingConfigs. release
9269 minifyEnabled = true
9370 shrinkResources = true
94- proguardFiles(getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro" )
95-
96- multiDexKeepProguard = file(" multidex-config.pro" )
71+ proguardFiles(getDefaultProguardFile(" proguard-android-optimize.txt" ), " proguard-rules.pro" )
9772 }
9873 }
9974
@@ -103,21 +78,11 @@ android {
10378 enableSplit = false // don't split language resources, as the app supports locale changing
10479 }
10580 }
106- kotlinOptions {
107- jvmTarget = " 1.8"
108- }
10981 lint {
11082 abortOnError = false
11183 }
11284}
11385
114- repositories {
115- mavenCentral()
116- maven { url " https://jitpack.io" }
117- maven { url " https://oss.jfrog.org/artifactory/oss-snapshot-local/" }
118- maven { url " https://oss.sonatype.org/content/repositories/snapshots/" }
119- }
120-
12186dependencies {
12287 implementation(project(" :modules:common-compose" ))
12388 implementation(project(" :modules:common-ui-theme" ))
@@ -137,24 +102,27 @@ dependencies {
137102 implementation(Deps.Kotlin . coroutinesAndroid)
138103
139104 // utils
140- implementation(Deps.Utils . proguardSnippets)
105+ // implementation(Deps.Utils.proguardSnippets)
141106
142- kapt (Deps.Android.Lifecycle . compiler)
107+ ksp (Deps.Android.Lifecycle . compiler)
143108
144109 // dagger-2
145110 implementation(Deps.Dagger . hilt)
146- kapt (Deps.Dagger . compiler)
147- kapt (Deps.Dagger . hiltCompiler)
111+ ksp (Deps.Dagger . compiler)
112+ ksp (Deps.Dagger . hiltCompiler)
148113
149114 // leak canary
150115 // debugImplementation Deps.LeakCanary.leakCanary
151-
152- // android
153- implementation(Deps.Android . multiDex)
154116}
155117
118+ apply plugin : " com.google.gms.google-services"
119+ apply plugin : " com.google.firebase.crashlytics"
156120
121+ apply plugin : " com.github.triplet.play"
122+ play {
123+ defaultToAppBundles = true
124+ track = prop(" PUBLISH_TRACK" , " alpha" )
125+ serviceAccountCredentials = rootProject. file(" signing/play-account.json" )
126+ }
157127
158- apply(plugin : " com.google.gms.google-services" )
159- apply(plugin : " com.google.firebase.crashlytics" )
160128apply(plugin : " kotlinx-serialization" )
0 commit comments