File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ android {
77 applicationId " me.iacn.mbestyle"
88 minSdkVersion 19
99 targetSdkVersion 28
10- versionCode 26
11- versionName " 1.7.3 "
10+ versionCode 27
11+ versionName " 1.7.6 "
1212 }
1313
1414 buildTypes {
@@ -40,7 +40,15 @@ android {
4040 // 修改生成 Apk 的文件名
4141 android. applicationVariants. all { variant ->
4242 variant. outputs. all { output ->
43- outputFileName = " MBEStyle_${ defaultConfig.versionName} .apk"
43+ outputFileName = " MBEStyle-${ defaultConfig.versionName} .apk"
44+ }
45+ }
46+ // Rename release apk name
47+ applicationVariants. all { variant ->
48+ variant. outputs. all { output ->
49+ if (variant. buildType. name == ' release' ) {
50+ outputFileName = " MBEStyle-${ defaultConfig.versionName} .apk"
51+ }
4452 }
4553 }
4654}
You can’t perform that action at this time.
0 commit comments