File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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
7373android.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" )
You can’t perform that action at this time.
0 commit comments