Skip to content

Commit a0459a4

Browse files
author
ideafun
committed
chore(release): Bump version to 0.0.5
- Add custom APK filename: AutoGLM-{version}-{buildType}.apk
1 parent f2462b4 commit a0459a4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

app/build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ android {
1212
applicationId = "com.kevinluo.autoglm"
1313
minSdk = 24
1414
targetSdk = 34
15-
versionCode = 4
16-
versionName = "0.0.4"
15+
versionCode = 5
16+
versionName = "0.0.5"
1717

1818
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1919
}
@@ -72,6 +72,13 @@ android {
7272
// Copy dev_profiles.json to assets for debug builds only
7373
android.applicationVariants.all {
7474
val variant = this
75+
76+
// Custom APK file name
77+
outputs.all {
78+
val output = this as com.android.build.gradle.internal.api.BaseVariantOutputImpl
79+
output.outputFileName = "AutoGLM-${variant.versionName}-${variant.buildType.name}.apk"
80+
}
81+
7582
if (variant.buildType.name == "debug") {
7683
val copyDevProfiles = tasks.register("copyDevProfiles${variant.name.replaceFirstChar { it.uppercase() }}") {
7784
val devProfilesFile = rootProject.file("dev_profiles.json")

0 commit comments

Comments
 (0)