diff --git a/android/build.gradle b/android/build.gradle index 7bcb7b4..afe75a4 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -17,6 +17,7 @@ apply plugin: 'kotlin-android' def DEFAULT_TARGET_SDK_VERSION = 27 def DEFAULT_COMPILE_SDK_VERSION = 27 def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3" +def DEFAULT_SUPPORT_LIB_VERSION = "28.0.0" def getExtOrDefault(name, defaultValue) { return rootProject.ext.has(name) ? rootProject.ext.get(name) : defaultValue @@ -48,6 +49,7 @@ android { repositories { mavenCentral() jcenter() + google() def found = false def defaultDir = null @@ -115,8 +117,11 @@ repositories { } } +def support_version = getExtOrDefault('supportLibVersion', DEFAULT_SUPPORT_LIB_VERSION) + dependencies { //noinspection GradleDynamicVersion api 'com.facebook.react:react-native:+' implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + implementation "com.android.support:appcompat-v7:$support_version" }