From a209008faa511b008fadd2f01f2163f1d84a14d0 Mon Sep 17 00:00:00 2001 From: Cristian Conedera Date: Wed, 25 Jul 2018 13:42:48 -0300 Subject: [PATCH] Added Android Build Support for newer React Native Versions --- android/build.gradle | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 0b9bdd3..a76957d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,13 +1,22 @@ apply plugin: 'com.android.library' + +def _ext = rootProject.ext + +def _compileSdkVersion = _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 27 +def _buildToolsVersion = _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '27.0.3' +def _minSdkVersion = _ext.has('minSdkVersion') ? _ext.minSdkVersion : 16 +def _targetSdkVersion = _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 27 + + android { - compileSdkVersion 23 - buildToolsVersion "23.0.1" + compileSdkVersion _compileSdkVersion + buildToolsVersion _buildToolsVersion defaultConfig { - minSdkVersion 16 - targetSdkVersion 22 + minSdkVersion _minSdkVersion + targetSdkVersion _targetSdkVersion versionCode 1 versionName "1.0" ndk {