Fix versioncode generation

This commit is contained in:
Marvin W 2016-03-14 19:11:20 +01:00
parent 8a239f5e31
commit 2e8857258c

View File

@ -78,8 +78,13 @@ android {
defaultConfig { defaultConfig {
versionName getMyVersionName() 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 // Update commit id to current when increasing gms version code
versionCode(8489238 + getMyVersionCode('249c935f')) versionCode(8490200 + x)
ndk { ndk {
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86" abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86"