Commit a39ad05f by Denglingling

调整打包文件名

parent affd9956
Showing with 6 additions and 1 deletions
...@@ -106,7 +106,7 @@ android { ...@@ -106,7 +106,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1 versionCode 1
versionName "1.0" versionName "1.1.4"
missingDimensionStrategy 'react-native-camera', 'general' missingDimensionStrategy 'react-native-camera', 'general'
} }
splits { splits {
...@@ -134,6 +134,7 @@ android { ...@@ -134,6 +134,7 @@ android {
output.versionCodeOverride = output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
} }
output.outputFileName = "v${defaultConfig.versionName}_${variant.buildType.name}_${releaseTime()}.apk"
} }
} }
// new add... // new add...
...@@ -149,6 +150,10 @@ android { ...@@ -149,6 +150,10 @@ android {
} }
} }
static def releaseTime() {
return new Date().format("MMdd", TimeZone.getTimeZone("UTC"))
}
dependencies { dependencies {
implementation project(':react-native-camera') implementation project(':react-native-camera')
implementation project(':react-native-splash-screen') implementation project(':react-native-splash-screen')
......
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 sign in to comment