Commit 005ae882 authored by pangcong Git's avatar pangcong Git
Browse files

修改输出apk文件名,修改版本号,存储历史apk文件

parent ef6b2d1c
...@@ -49,8 +49,8 @@ android { ...@@ -49,8 +49,8 @@ android {
sit { sit {
applicationId "com.citicsf.csp.pad.sit" applicationId "com.citicsf.csp.pad.sit"
versionCode 201 versionCode 210
versionName "2.0.1" versionName "2.1.0"
minSdkVersion 24 minSdkVersion 24
targetSdkVersion 28 targetSdkVersion 28
manifestPlaceholders = [app_name: "外出开户SIT", icon: "@mipmap/ic_launcher_zxqh", bdkey: "ixVXFlhEFLSAXtA2IVeNF0CNw2chONRQ", screenOrientation: "landscape"] manifestPlaceholders = [app_name: "外出开户SIT", icon: "@mipmap/ic_launcher_zxqh", bdkey: "ixVXFlhEFLSAXtA2IVeNF0CNw2chONRQ", screenOrientation: "landscape"]
...@@ -62,8 +62,8 @@ android { ...@@ -62,8 +62,8 @@ android {
uat { uat {
applicationId "com.citicsf.csp.pad.uat" applicationId "com.citicsf.csp.pad.uat"
versionCode 201 versionCode 210
versionName "2.0.1" versionName "2.1.0"
minSdkVersion 24 minSdkVersion 24
targetSdkVersion 28 targetSdkVersion 28
manifestPlaceholders = [app_name: "外出开户UAT", icon: "@mipmap/ic_launcher_zxqh", bdkey: "ixVXFlhEFLSAXtA2IVeNF0CNw2chONRQ", screenOrientation: "landscape"] manifestPlaceholders = [app_name: "外出开户UAT", icon: "@mipmap/ic_launcher_zxqh", bdkey: "ixVXFlhEFLSAXtA2IVeNF0CNw2chONRQ", screenOrientation: "landscape"]
...@@ -75,8 +75,8 @@ android { ...@@ -75,8 +75,8 @@ android {
sim { sim {
applicationId "com.citicsf.csp.pad.sim" applicationId "com.citicsf.csp.pad.sim"
versionCode 201 versionCode 210
versionName "2.0.1" versionName "2.1.0"
minSdkVersion 24 minSdkVersion 24
targetSdkVersion 28 targetSdkVersion 28
manifestPlaceholders = [app_name: "外出开户SIM", icon: "@mipmap/ic_launcher_zxqh", bdkey: "ixVXFlhEFLSAXtA2IVeNF0CNw2chONRQ", screenOrientation: "landscape"] manifestPlaceholders = [app_name: "外出开户SIM", icon: "@mipmap/ic_launcher_zxqh", bdkey: "ixVXFlhEFLSAXtA2IVeNF0CNw2chONRQ", screenOrientation: "landscape"]
...@@ -97,7 +97,7 @@ android { ...@@ -97,7 +97,7 @@ android {
android.applicationVariants.all { variant -> android.applicationVariants.all { variant ->
variant.outputs.all { output -> variant.outputs.all { output ->
def fileName = variant.productFlavors[0].applicationId + "-" + buildType.name + "-v" + variant.productFlavors[0].versionName + "-" + variant.productFlavors[0].versionCode + ".apk"; def fileName = variant.productFlavors[0].applicationId + "-v" + variant.productFlavors[0].versionName + "-" + releaseTime() + ".apk";
outputFileName = fileName; outputFileName = fileName;
} }
} }
...@@ -154,7 +154,9 @@ android { ...@@ -154,7 +154,9 @@ android {
} }
} }
} }
static def releaseTime() {
return new Date().format("MMdd_HHmm", TimeZone.default)
}
dependencies { dependencies {
// androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', { // androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
// exclude group: 'com.android.support', module: 'support-annotations' // exclude group: 'com.android.support', module: 'support-annotations'
...@@ -192,4 +194,6 @@ dependencies { ...@@ -192,4 +194,6 @@ dependencies {
implementation project(path: ':market_zxqh') implementation project(path: ':market_zxqh')
implementation 'com.elvishew:xlog:1.11.1' implementation 'com.elvishew:xlog:1.11.1'
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment