Browse Source

update gradle

Daniel Zlotin 6 years ago
parent
commit
c3e600dde9

+ 1
- 1
example/android/app/build.gradle View File

20
 
20
 
21
 android {
21
 android {
22
     compileSdkVersion 25
22
     compileSdkVersion 25
23
-    buildToolsVersion "25.0.1"
23
+    buildToolsVersion '26.0.2'
24
 
24
 
25
     defaultConfig {
25
     defaultConfig {
26
         applicationId "com.example"
26
         applicationId "com.example"

+ 3
- 1
example/android/build.gradle View File

2
 
2
 
3
 buildscript {
3
 buildscript {
4
     repositories {
4
     repositories {
5
+        google()
5
         jcenter()
6
         jcenter()
6
     }
7
     }
7
     dependencies {
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
         // NOTE: Do not place your application dependencies here; they belong
11
         // NOTE: Do not place your application dependencies here; they belong
11
         // in the individual module build.gradle files
12
         // in the individual module build.gradle files
16
     repositories {
17
     repositories {
17
         mavenLocal()
18
         mavenLocal()
18
         jcenter()
19
         jcenter()
20
+        google()
19
         maven {
21
         maven {
20
             // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
22
             // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21
             url "$rootDir/../node_modules/react-native/android"
23
             url "$rootDir/../node_modules/react-native/android"

+ 2
- 2
example/android/gradle/wrapper/gradle-wrapper.properties View File

1
-#Fri Jun 30 16:12:20 EDT 2017
1
+#Sun Jan 28 19:31:28 IST 2018
2
 distributionBase=GRADLE_USER_HOME
2
 distributionBase=GRADLE_USER_HOME
3
 distributionPath=wrapper/dists
3
 distributionPath=wrapper/dists
4
 zipStoreBase=GRADLE_USER_HOME
4
 zipStoreBase=GRADLE_USER_HOME
5
 zipStorePath=wrapper/dists
5
 zipStorePath=wrapper/dists
6
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip