Renamed APK
This commit is contained in:
parent
cc43cea80c
commit
05ee69c06f
|
@ -40,12 +40,7 @@ android {
|
|||
|
||||
variant.outputs.each { output ->
|
||||
def newApkName
|
||||
//If there's no ZipAlign task it means that our artifact will be unaligned and we need to mark it as such.
|
||||
if (output.zipAlign) {
|
||||
newApkName = "${appName}-${output.baseName}-${variant.versionName}.apk"
|
||||
} else {
|
||||
newApkName = "${appName}-${output.baseName}-${variant.versionName}-unaligned.apk"
|
||||
}
|
||||
output.outputFile = new File(output.outputFile.parent, newApkName)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user