Last active
August 2, 2016 17:48
-
-
Save SelvinPL/47792b03b83ada3557f4 to your computer and use it in GitHub Desktop.
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 getVersionCode(int default_) { | |
return project.hasProperty('versionCode') ? versionCode.toInteger() : default_ | |
} | |
def getVersionName(String default_) { | |
return project.hasProperty('versionName') ? versionName : default_ | |
} | |
versionCode getVersionCode(3) | |
versionName getVersionName("1.0") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment