Browse Source

Update build.gradle

Thibault Malbranche 5 years ago
parent
commit
ec163dd3ec
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      android/build.gradle

+ 5
- 0
android/build.gradle View File

17
 def DEFAULT_TARGET_SDK_VERSION = 27
17
 def DEFAULT_TARGET_SDK_VERSION = 27
18
 def DEFAULT_COMPILE_SDK_VERSION = 27
18
 def DEFAULT_COMPILE_SDK_VERSION = 27
19
 def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
19
 def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
20
+def DEFAULT_SUPPORT_LIB_VERSION = "28.0.0"
20
 
21
 
21
 def getExtOrDefault(name, defaultValue) {
22
 def getExtOrDefault(name, defaultValue) {
22
   return rootProject.ext.has(name) ? rootProject.ext.get(name) : defaultValue
23
   return rootProject.ext.has(name) ? rootProject.ext.get(name) : defaultValue
48
 repositories {
49
 repositories {
49
   mavenCentral()
50
   mavenCentral()
50
   jcenter()
51
   jcenter()
52
+  google()
51
 
53
 
52
   def found = false
54
   def found = false
53
   def defaultDir = null
55
   def defaultDir = null
115
   }
117
   }
116
 }
118
 }
117
 
119
 
120
+def support_version = getExtOrDefault('supportLibVersion', DEFAULT_SUPPORT_LIB_VERSION)
121
+
118
 dependencies {
122
 dependencies {
119
   //noinspection GradleDynamicVersion
123
   //noinspection GradleDynamicVersion
120
   api 'com.facebook.react:react-native:+'
124
   api 'com.facebook.react:react-native:+'
121
   implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
125
   implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
126
+  implementation "com.android.support:appcompat-v7:$support_version"
122
 }
127
 }