Renamed APK

This commit is contained in:
Juan Miguel Boyero Corral 2017-02-10 22:02:37 +01:00
parent cc43cea80c
commit 05ee69c06f

View File

@ -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"
}
newApkName = "${appName}-${output.baseName}-${variant.versionName}.apk"
output.outputFile = new File(output.outputFile.parent, newApkName)
}
}