From 0098d9f8ab548a53bd2b82124922238aee2f6464 Mon Sep 17 00:00:00 2001 From: Alireza Rezania <38705618+alirezarzna@users.noreply.github.com> Date: Thu, 28 Mar 2019 14:32:17 +0430 Subject: [PATCH] fix build error --- android/build.gradle | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index f0a74ba..bca25c6 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,11 +1,16 @@ apply plugin: 'com.android.library' +def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} + + 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 {