Commit c215ba70 by huangzhicong

增加打包自动命名规则

parent b7e812c2
...@@ -30,6 +30,15 @@ android { ...@@ -30,6 +30,15 @@ android {
kotlinOptions { kotlinOptions {
jvmTarget = '1.8' jvmTarget = '1.8'
} }
android.applicationVariants.all { variant ->
variant.outputs.all { output ->
outputFileName = "ibms_v$variant.versionName(${packageTime()}).apk"
}
}
}
static def packageTime() {
return new Date().format("MMddHHmm", TimeZone.getTimeZone("GMT+08:00"))
} }
dependencies { dependencies {
......
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