Browse Source

upgrade gradle

Daniel Zlotin 6 years ago
parent
commit
561635ec07

+ 5
- 2
playground/android/build.gradle View File

@@ -3,9 +3,10 @@
3 3
 buildscript {
4 4
     repositories {
5 5
         jcenter()
6
+        google()
6 7
     }
7 8
     dependencies {
8
-        classpath 'com.android.tools.build:gradle:2.3.3'
9
+        classpath 'com.android.tools.build:gradle:3.0.1'
9 10
 
10 11
         // NOTE: Do not place your application dependencies here; they belong
11 12
         // in the individual module build.gradle files
@@ -14,8 +15,10 @@ buildscript {
14 15
 
15 16
 allprojects {
16 17
     repositories {
17
-        mavenLocal()
18 18
         jcenter()
19
+        google()
20
+        mavenLocal()
21
+        mavenCentral()
19 22
         maven {
20 23
             // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 24
             url "$rootDir/../../node_modules/react-native/android"

+ 1
- 1
playground/android/gradle/wrapper/gradle-wrapper.properties View File

@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3 3
 distributionPath=wrapper/dists
4 4
 zipStoreBase=GRADLE_USER_HOME
5 5
 zipStorePath=wrapper/dists
6
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-bin.zip