Last active
November 14, 2022 15:43
-
-
Save passsy/5ea60bce2ed395a9593ef27d8c186ad2 to your computer and use it in GitHub Desktop.
lazy jake wharton versioning
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
def versionMajor = 3 | |
def versionMinor = 0 | |
def versionPatch = 0 | |
def versionBuild = 0 // bump for dogfood builds, public betas, etc. | |
android { | |
defaultConfig { | |
versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100 + versionBuild | |
versionName "${versionMajor}.${versionMinor}.${versionPatch}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment