Browse Source

打包名称

yinds 2 months ago
parent
commit
79b7dcc227
2 changed files with 3 additions and 2 deletions
  1. 2 1
      app/build.gradle
  2. 1 1
      config.gradle

+ 2 - 1
app/build.gradle

@@ -78,7 +78,8 @@ android {
             variant.outputs.all {
                 //在这里修改apk文件名
                 def df = new SimpleDateFormat('yyyyMMdd')
-                outputFileName = "${rootProject.ext.defaultConfig.apklabel}_${variant.name}_${df.format(new Date())}_${variant.versionName}_${variant.versionCode}.apk"
+                def evn = variant.name == 'debug' ? '测试':'正式'
+                outputFileName = "${rootProject.ext.defaultConfig.apklabel}_${evn}_${df.format(new Date())}_${variant.versionName}_${variant.versionCode}.apk"
             }
     }
 }

+ 1 - 1
config.gradle

@@ -13,7 +13,7 @@ ext {
             targetSdkVersion : 29,
     ]
     defaultConfig = [
-            apklabel : 'WIPED'
+            apklabel : '核销端'
     ]