Skip to content

Commit b94e9ff

Browse files
authored
Merge pull request wkh237#265 from joltup/gradle-upgrade
update android build config for newer react-native versions
2 parents 70fcb3a + f4acab9 commit b94e9ff

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

android/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ repositories {
1111
buildscript {
1212
repositories {
1313
jcenter()
14+
google()
1415
}
1516
dependencies {
16-
classpath 'com.android.tools.build:gradle:2.2.3'
17+
classpath 'com.android.tools.build:gradle:3.1.4'
1718
}
1819
}
1920

@@ -37,7 +38,7 @@ android {
3738
}
3839

3940
dependencies {
40-
compile "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
41+
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
4142
//compile 'com.squareup.okhttp3:okhttp:+'
4243
//{RNFetchBlob_PRE_0.28_DEPDENDENCY}
4344
}

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
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

0 commit comments

Comments
 (0)