forked from GitHub-Mirror/riotX-android
Fix version code issue
This commit is contained in:
parent
ff80c3c8d5
commit
52dced43ff
@ -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'
|
||||
@ -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()}\""
|
||||
|
Loading…
Reference in New Issue
Block a user