File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import com.android.build.gradle.internal.api.BaseVariantOutputImpl
2+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3+ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
14
25plugins {
36 alias(libs.plugins.android.application)
@@ -34,10 +37,6 @@ android {
3437 getDefaultProguardFile(" proguard-android-optimize.txt" ),
3538 " proguard-rules.pro"
3639 )
37-
38- kotlinOptions {
39- freeCompilerArgs = listOf (" -Xdebug" )
40- }
4140 }
4241 release {
4342 signingConfig = signingConfigs.getByName(" release" )
@@ -48,6 +47,7 @@ android {
4847 )
4948 }
5049 }
50+
5151 compileOptions {
5252 sourceCompatibility = JavaVersion .VERSION_17
5353 targetCompatibility = JavaVersion .VERSION_17
@@ -58,6 +58,14 @@ android {
5858 buildFeatures {
5959 compose = true
6060 }
61+
62+ tasks.withType<KotlinCompile >().configureEach {
63+ compilerOptions {
64+ if (name.contains(" Debug" , ignoreCase = true )) {
65+ freeCompilerArgs.add(" -Xdebug" )
66+ }
67+ }
68+ }
6169}
6270
6371dependencies {
@@ -89,4 +97,11 @@ dependencies {
8997 " dir" to " libs" ,
9098 " include" to " *.aar"
9199 ))
100+ }
101+
102+ android.applicationVariants.all {
103+ outputs.all {
104+ this as BaseVariantOutputImpl
105+ outputFileName = " ims.apk"
106+ }
92107}
You can’t perform that action at this time.
0 commit comments