From 2e8857258c6b45b63d95274bb4c0504ecdce3a1a Mon Sep 17 00:00:00 2001 From: Marvin W Date: Mon, 14 Mar 2016 19:11:20 +0100 Subject: [PATCH] Fix versioncode generation --- play-services-core/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/play-services-core/build.gradle b/play-services-core/build.gradle index 5c2d54f1..36ac38b7 100644 --- a/play-services-core/build.gradle +++ b/play-services-core/build.gradle @@ -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"