From d6016b200d60b95f72fa2506ca7f54be740771d0 Mon Sep 17 00:00:00 2001 From: Henry Moule Date: Wed, 12 Jul 2023 14:03:44 +0100 Subject: [PATCH] Update build.gradle Build fix for newer version of react native --- android/build.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index d8c3d7c..6937e82 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,8 +1,12 @@ apply plugin: 'com.android.library' +def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} + android { - compileSdkVersion 23 + compileSdkVersion safeExtGet('compileSdkVersion', 23) buildToolsVersion "27.0.3" defaultConfig { @@ -21,4 +25,4 @@ android { dependencies { implementation 'com.facebook.react:react-native:+' // From node_modules -} \ No newline at end of file +}