Skip to content

Instantly share code, notes, and snippets.

@passsy

passsy/build.gradle

Last active Jan 15, 2021
Embed
What would you like to do?
lazy jake wharton versioning
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