Bläddra i källkod

Update build.gradle

Thibault Malbranche 6 år sedan
förälder
incheckning
1f11f10a69
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4
    0
      android/build.gradle

+ 4
- 0
android/build.gradle Visa fil

@@ -20,6 +20,7 @@ apply plugin: 'kotlin-android'
20 20
 def DEFAULT_COMPILE_SDK_VERSION = 27
21 21
 def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
22 22
 def DEFAULT_TARGET_SDK_VERSION = 27
23
+def DEFAULT_SUPPORT_LIB_VERSION = "27.0.2"
23 24
 
24 25
 android {
25 26
     compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
@@ -86,7 +87,10 @@ repositories {
86 87
     }
87 88
 }
88 89
 
90
+def supportVersion = rootProject.hasProperty('supportLibVersion') ? rootProject.supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION
91
+
89 92
 dependencies {
90 93
     implementation 'com.facebook.react:react-native:+'
94
+    implementation "com.android.support:appcompat-v7:$supportVersion"
91 95
     implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
92 96
 }