之定义输出文件名

serial
BlueMatthew 1 year ago
parent 2ce69585c2
commit ee2fef7c3a

@ -46,6 +46,16 @@ android {
debug { debug {
jniDebuggable true jniDebuggable true
testCoverageEnabled false testCoverageEnabled false
android.applicationVariants.all { variant ->
variant.outputs.all { output ->
if (outputFileName.endsWith('.apk')) {
def fileName = "mpapp_v${defaultConfig.versionName}_${new Date(System.currentTimeMillis()).format("yyyyMMdd")}.apk"
outputFileName = fileName
}
}
}
} }
} }

@ -31,6 +31,14 @@ android {
} }
debug { debug {
jniDebuggable true jniDebuggable true
android.applicationVariants.all { variant ->
variant.outputs.all { output ->
if (outputFileName.endsWith('.apk')) {
def fileName = "MpMaster_v${defaultConfig.versionName}_${new Date(System.currentTimeMillis()).format("yyyyMMdd")}.apk"
outputFileName = fileName
}
}
}
} }
} }

Loading…
Cancel
Save