-
Notifications
You must be signed in to change notification settings - Fork 2
Auto Rename APK
Bhaumik Soni edited this page May 15, 2017
·
1 revision
android.applicationVariants.all { variant ->
def appName
//Check if an applicationName property is supplied; if not use the name of the parent project.
if (project.hasProperty("applicationName")) {
appName = applicationName
} else {
appName = parent.name
}
variant.outputs.each { output ->
def newApkName
newApkName = "${appName}-${output.baseName}-${variant.versionName}.apk"
output.outputFile = new File(output.outputFile.parent, newApkName)
}
}
apply from: "../artifacts.gradle"
Coding Guidelines
Android IMP