Skip to content

Commit 7aa6e56

Browse files
committed
Release: 1.7.6
1 parent 8ea2166 commit 7aa6e56

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

app/build.gradle

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)