From cb3fa2d9232014c99ae31f68af840063e989e4f3 Mon Sep 17 00:00:00 2001 From: Mygod Date: Wed, 24 Jan 2018 00:13:35 -0800 Subject: [PATCH] Fix gradle build script Now that we have max(versionCodes) = 211003, it's time to just change this versionCode scheme. --- mobile/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/build.gradle b/mobile/build.gradle index bcd8efc7..9f4572f5 100644 --- a/mobile/build.gradle +++ b/mobile/build.gradle @@ -8,7 +8,7 @@ apply plugin: 'kotlin-android' def getCurrentFlavor() { String task = getGradle().getStartParameter().getTaskRequests().toString() Matcher matcher = Pattern.compile("(assemble|generate)\\w*(Release|Debug)").matcher(task) - if (matcher.find()) return matcher.group(1).toLowerCase() else { + if (matcher.find()) return matcher.group(2).toLowerCase() else { println "Warning: No match found for $task" return "debug" } @@ -21,7 +21,7 @@ android { applicationId "com.github.shadowsocks" minSdkVersion rootProject.minSdkVersion targetSdkVersion rootProject.sdkVersion - versionCode 220 + versionCode 4040600 versionName "4.4.6" testApplicationId "com.github.shadowsocks.test" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"