Pārlūkot izejas kodu

updated android dependencies

Oleksandr Kucherenko 5 gadus atpakaļ
vecāks
revīzija
03cd53b3c6
1 mainītis faili ar 16 papildinājumiem un 1 dzēšanām
  1. 16
    1
      example/android/build.gradle

+ 16
- 1
example/android/build.gradle Parādīt failu

@@ -2,19 +2,34 @@
2 2
 
3 3
 buildscript {
4 4
     repositories {
5
+        google()
5 6
         jcenter()
6 7
     }
7 8
     dependencies {
8
-        classpath 'com.android.tools.build:gradle:2.3.3'
9
+        classpath 'com.android.tools.build:gradle:3.1.4'
9 10
 
10 11
         // NOTE: Do not place your application dependencies here; they belong
11 12
         // in the individual module build.gradle files
12 13
     }
13 14
 }
14 15
 
16
+// This will apply compileSdkVersion and buildToolsVersion to any android modules
17
+subprojects { subproject ->
18
+    afterEvaluate { project ->
19
+        if (!project.name.equalsIgnoreCase("app") && project.hasProperty("android")) {
20
+            android {
21
+                compileSdkVersion 27
22
+                buildToolsVersion '28.0.3'
23
+            }
24
+        }
25
+    }
26
+}
27
+
28
+
15 29
 allprojects {
16 30
     repositories {
17 31
         mavenLocal()
32
+        google()
18 33
         jcenter()
19 34
         maven {
20 35
             // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm