yinds hai 4 meses
pai
achega
79b7dcc227
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 2 1
      app/build.gradle
  2. 1 1
      config.gradle

+ 2 - 1
app/build.gradle

@@ -78,7 +78,8 @@ android {
             variant.outputs.all {
             variant.outputs.all {
                 //在这里修改apk文件名
                 //在这里修改apk文件名
                 def df = new SimpleDateFormat('yyyyMMdd')
                 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,
             targetSdkVersion : 29,
     ]
     ]
     defaultConfig = [
     defaultConfig = [
-            apklabel : 'WIPED'
+            apklabel : '核销端'
     ]
     ]