diff --git a/android/build.gradle b/android/build.gradle index 89bcf416..fe22bbfe 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,8 +1,4 @@ buildscript { - ext.safeExtGet = {prop, fallback -> - rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback - } - // The Android Gradle plugin is only required when opening the android folder stand-alone. // This avoids unnecessary downloads and potential conflicts when the library is included as a // module dependency in an application project. @@ -13,14 +9,17 @@ buildscript { } dependencies { - //noinspection GradleDependency - classpath("com.android.tools.build:gradle:3.5.1") + classpath("com.android.tools.build:gradle:3.5.3") } } } apply plugin: 'com.android.library' +def safeExtGet(prop, fallback) { + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback +} + android { compileSdkVersion safeExtGet('compileSdkVersion', 28) //noinspection GradleDependency @@ -48,5 +47,5 @@ repositories { dependencies { //noinspection GradleDynamicVersion - implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}" + implementation "com.facebook.react:react-native:+" }