Skip to content

Commit dce7621

Browse files
committed
Changed output apk name to ims.apk
1 parent f5cb349 commit dce7621

1 file changed

Lines changed: 19 additions & 4 deletions

File tree

watch/app/build.gradle.kts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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

25
plugins {
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

6371
dependencies {
@@ -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
}

0 commit comments

Comments
 (0)