Last active
September 2, 2020 09:22
-
-
Save rodrigohenriques/1f765e32b6f866e5fe81 to your computer and use it in GitHub Desktop.
Add version name to generated apk file
This file contains 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
applicationVariants.all { variant -> | |
variant.outputs.each { output -> | |
output.outputFile = new File( | |
output.outputFile.parent, | |
output.outputFile.name.replace(".apk", "-${variant.versionName}.apk")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment