Skip to content

Commit b4f583d

Browse files
committed
Fix APK naming to use base version without suffix
1 parent 47cd7ca commit b4f583d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ android {
5757
aidl = true
5858
}
5959

60-
// Custom APK naming
60+
// Custom APK naming: AppControlX-v1.0.0-debug.apk
6161
applicationVariants.all {
6262
val variant = this
6363
variant.outputs.all {
6464
val output = this as com.android.build.gradle.internal.api.BaseVariantOutputImpl
6565
val appName = "AppControlX"
66-
val versionName = variant.versionName
66+
val versionName = defaultConfig.versionName
6767
val buildType = variant.buildType.name
6868
output.outputFileName = "${appName}-v${versionName}-${buildType}.apk"
6969
}

0 commit comments

Comments
 (0)