Skip to content

Commit

Permalink
Fix version code issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed Jul 11, 2019
1 parent ff80c3c commit 52dced4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions vector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ androidExtensions {
experimental = true
}

def versionMajor = 0
def versionMinor = 1
def versionPatch = 0
ext.versionMajor = 0
ext.versionMinor = 1
ext.versionPatch = 0

static def getGitTimestamp() {
def cmd = 'git show -s --format=%ct'
Expand Down Expand Up @@ -63,7 +63,11 @@ android {
minSdkVersion 19
targetSdkVersion 28
multiDexEnabled true
versionCode generateVersionCodeFromTimestamp()

// For release, use generateVersionCodeFromVersionName()
// versionCode generateVersionCodeFromTimestamp()
versionCode generateVersionCodeFromVersionName()

versionName "${versionMajor}.${versionMinor}.${versionPatch}"

buildConfigField "String", "GIT_REVISION", "\"${gitRevision()}\""
Expand Down

0 comments on commit 52dced4

Please sign in to comment.