瀏覽代碼

update android build config for newer react-native versions

Travis Nuttall 5 年之前
父節點
當前提交
f4acab9e5f
共有 2 個檔案被更改,包括 4 行新增3 行删除
  1. 3
    2
      android/build.gradle
  2. 1
    1
      android/gradle/wrapper/gradle-wrapper.properties

+ 3
- 2
android/build.gradle 查看文件

@@ -11,9 +11,10 @@ repositories {
11 11
 buildscript {
12 12
     repositories {
13 13
         jcenter()
14
+        google()
14 15
     }
15 16
     dependencies {
16
-        classpath 'com.android.tools.build:gradle:2.2.3'
17
+        classpath 'com.android.tools.build:gradle:3.1.4'
17 18
     }
18 19
 }
19 20
 
@@ -37,7 +38,7 @@ android {
37 38
 }
38 39
 
39 40
 dependencies {
40
-    compile "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
41
+    implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
41 42
     //compile 'com.squareup.okhttp3:okhttp:+'
42 43
     //{RNFetchBlob_PRE_0.28_DEPDENDENCY}
43 44
 }

+ 1
- 1
android/gradle/wrapper/gradle-wrapper.properties 查看文件

@@ -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-2.14.1-all.zip
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip