Skip to content

Commit

Permalink
semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
yausername committed Jun 20, 2020
1 parent 9a99126 commit 1581454
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

def versionMajor = 0
def versionMinor = 1
def versionPatch = 0
def versionBuild = 0 // bump for dogfood builds, public betas, etc.

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
Expand All @@ -11,8 +16,8 @@ android {
applicationId "com.yausername.dvd"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
versionCode versionMajor * 1000000 + versionMinor * 10000 + versionPatch * 100 + versionBuild
versionName "${versionMajor}.${versionMinor}.${versionPatch}"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down

0 comments on commit 1581454

Please sign in to comment.