From 874a8a875d3cafb02cecd5808efbe5e82af3de0f Mon Sep 17 00:00:00 2001 From: khrizt Date: Thu, 25 Oct 2018 16:40:16 +0200 Subject: [PATCH] Update build.gradle To make it work with react-native 0.57 and detox v9 we need this build.gradle changes --- android/build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index e09fb274..2f639219 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,12 +1,14 @@ apply plugin: 'com.android.library' +def _ext = rootProject.ext; + android { - compileSdkVersion 23 - buildToolsVersion "23.0.1" + compileSdkVersion _ext.has('compileSdkVersion') ? _ext.compileSdkVersion : 26; + buildToolsVersion _ext.has('buildToolsVersion') ? _ext.buildToolsVersion : '26.0.1'; defaultConfig { minSdkVersion 16 - targetSdkVersion 22 + targetSdkVersion _ext.has('targetSdkVersion') ? _ext.targetSdkVersion : 26; versionCode 1 versionName "1.0" ndk {