Fix versioncode generation

This commit is contained in:
Marvin W 2016-03-14 19:11:20 +01:00
parent 8a239f5e31
commit 2e8857258c
1 changed files with 6 additions and 1 deletions

View File

@ -78,8 +78,13 @@ android {
defaultConfig {
versionName getMyVersionName()
def x = getMyVersionCode('249c935f')
// We are not allowed to freely choose the hundreds column as it defines the device type
def y = x % 100;
x -= y * 100;
x += y * 1000;
// Update commit id to current when increasing gms version code
versionCode(8489238 + getMyVersionCode('249c935f'))
versionCode(8490200 + x)
ndk {
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86"