Skip to content

Instantly share code, notes, and snippets.

@a-v-ebrahimi
Last active August 29, 2015 14:25
Show Gist options
  • Save a-v-ebrahimi/71ccf91d56f5a7ff61ea to your computer and use it in GitHub Desktop.
Save a-v-ebrahimi/71ccf91d56f5a7ff61ea to your computer and use it in GitHub Desktop.
Android Gradle APK name
buildTypes {
release {
//...
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(
output.outputFile.parent,
output.outputFile.name.replace("app-release.apk", "YOURAPPNAME-${variant.versionName}.apk"))
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment