Skip to content

Instantly share code, notes, and snippets.

@SeanZoR
Created September 7, 2014 05:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save SeanZoR/5d098b199c64dedeb508 to your computer and use it in GitHub Desktop.
Android - add version name to APK file name
// Add the version name to the build
applicationVariants.all { v ->
def f = v.outputFile
def fname = f.name.replace(".apk",
"-${defaultConfig.versionName}.apk")
v.outputFile = new File(f.parent, fname)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment