From a73e510405e511b5a44fed62a9fd1a313447fa4f Mon Sep 17 00:00:00 2001 From: Stan Chang Khin Boon Date: Mon, 3 Sep 2018 13:10:39 +0800 Subject: [PATCH] Fix Android gradle build script --- android/build.gradle | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 0b9bdd3..c2b8916 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,13 +1,16 @@ +def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} apply plugin: 'com.android.library' android { - compileSdkVersion 23 - buildToolsVersion "23.0.1" + compileSdkVersion safeExtGet('compileSdkVersion', 26) + buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3') defaultConfig { - minSdkVersion 16 - targetSdkVersion 22 + minSdkVersion safeExtGet('minSdkVersion', 16) + targetSdkVersion safeExtGet('targetSdkVersion', 26) versionCode 1 versionName "1.0" ndk {