From e31114474508fa1765e640f4897222c6fb6ba663 Mon Sep 17 00:00:00 2001 From: Tom Aranda Date: Fri, 20 Jul 2018 03:04:17 -0500 Subject: [PATCH] Support React Native 0.56 (#139) --- android/build.gradle | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 932bba4..3f0446e 100755 --- a/android/build.gradle +++ b/android/build.gradle @@ -10,13 +10,17 @@ buildscript { 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 23 + minSdkVersion safeExtGet('minSdkVersion', 16) + targetSdkVersion safeExtGet('targetSdkVersion', 26) versionCode 1 versionName "1.0" }