Conditionally rename the APK for Jenkins

This commit is contained in:
Bradley Austin Davis 2017-11-28 12:35:10 -08:00
parent 72792552c8
commit 137118c7fd

View file

@ -36,7 +36,9 @@ android {
buildTypes { buildTypes {
applicationVariants.all { variant -> applicationVariants.all { variant ->
variant.outputs.all { variant.outputs.all {
outputFileName = "app_" + RELEASE_NUMBER + "_" + RELEASE_TYPE + ".apk" if (RELEASE_NUMBER != '0') {
outputFileName = "app_" + RELEASE_NUMBER + "_" + RELEASE_TYPE + ".apk"
}
} }
} }