Created
February 26, 2016 04:31
-
-
Save nisrulz/4db0f6ae2afd1becbba6 to your computer and use it in GitHub Desktop.
Change name of apk via gradle property in android
This file contains hidden or 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
android { | |
compileSdkVersion 23 | |
buildToolsVersion "23.0.2" | |
defaultConfig { | |
applicationId "com.company.packagename" | |
minSdkVersion 7 | |
targetSdkVersion 23 | |
versionCode 1 | |
versionName "1.0.0" | |
// Change name of apk | |
setProperty("archivesBaseName", "MyCompany-MyAppName-$versionName($versionCode)") | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment