Skip to content

Commit 47cd7ca

Browse files
committed
Add custom APK naming: AppControlX-vX.X.X-buildType.apk
1 parent f5d7d17 commit 47cd7ca

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ android {
5656
buildConfig = true
5757
aidl = true
5858
}
59+
60+
// Custom APK naming
61+
applicationVariants.all {
62+
val variant = this
63+
variant.outputs.all {
64+
val output = this as com.android.build.gradle.internal.api.BaseVariantOutputImpl
65+
val appName = "AppControlX"
66+
val versionName = variant.versionName
67+
val buildType = variant.buildType.name
68+
output.outputFileName = "${appName}-v${versionName}-${buildType}.apk"
69+
}
70+
}
5971
}
6072

6173
dependencies {

0 commit comments

Comments
 (0)