Skip to content

Instantly share code, notes, and snippets.

@hector6872
Last active July 17, 2017 17:57
Show Gist options
  • Save hector6872/925ca3ef26e6cdca5290a951f36e0d28 to your computer and use it in GitHub Desktop.
Save hector6872/925ca3ef26e6cdca5290a951f36e0d28 to your computer and use it in GitHub Desktop.
Semantic versioning
def appVersionMajor = 1
def appVersionMinor = 0
def appVersionPatch = 0
def appVersionBuild = 0
appVersionCode = appVersionMajor * 1000000 + appVersionMinor * 10000 + appVersionPatch * 100 + appVersionBuild
appVersionName = "${appVersionMajor}.${appVersionMinor}.${appVersionPatch}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment