-
-
Save sreereddymenon/259a55d87bb94753cbd4 to your computer and use it in GitHub Desktop.
Android / add app version and build number to assembled apk.
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
def appVersionName = "1.0.0" | |
def appVersionCode = 12 | |
android { | |
//... | |
defaultConfig { | |
//.. | |
// Add version and build number to apk name | |
setProperty("archivesBaseName", "app-${appVersionName}-${appVersionCode}") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment