-
-
Save beiliubei/0ad55798fc29e7382282 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android.applicationVariants.all { variant -> | |
println "*********" + variant.description + "**********"; | |
def variants = variant.baseName.split("-"); | |
def apkName = "ricebook-"; | |
apkName += variants[0]; | |
apkName += "-v" + android.defaultConfig.versionName; | |
if (!variant.zipAlign) { | |
apkName += "-unaligned"; | |
} | |
if (variant.buildType.name == "release") { | |
apkName += "-RELEASE.apk"; | |
} else { | |
apkName += "-SNAPSHOT.apk"; | |
} | |
println "*********" + "$project.buildDir/apk/" + apkName + "**********"; | |
variant.outputFile = file("$project.buildDir/apk/" + apkName) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment