Skip to content

Commit 8274e7d

Browse files
MarkOSullivan94rborn
authored andcommitted
Updated gradle configuration for gradle 3.0.0+ (react-native-maps#2096)
* Updated android install to follow the new gradle configuration * Updated to new gradle 3.0.0+ configuration
1 parent 9f90ab3 commit 8274e7d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

docs/installation.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ The steps are as described in https://facebook.github.io/react-native/docs/runni
106106
...
107107
dependencies {
108108
...
109-
compile project(':react-native-maps')
109+
implementation project(':react-native-maps')
110110
}
111111
```
112112

@@ -135,12 +135,12 @@ If you've defined *[project-wide properties](https://developer.android.com/studi
135135
...
136136
dependencies {
137137
...
138-
compile(project(':react-native-maps')){
138+
implementation(project(':react-native-maps')){
139139
exclude group: 'com.google.android.gms', module: 'play-services-base'
140140
exclude group: 'com.google.android.gms', module: 'play-services-maps'
141141
}
142-
compile 'com.google.android.gms:play-services-base:10.0.1'
143-
compile 'com.google.android.gms:play-services-maps:10.0.1'
142+
implementation 'com.google.android.gms:play-services-base:10.0.1'
143+
implementation 'com.google.android.gms:play-services-maps:10.0.1'
144144
}
145145
```
146146

lib/android/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ dependencies {
4343
def googlePlayServicesVersion = rootProject.hasProperty('googlePlayServicesVersion') ? rootProject.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
4444
def androidMapsUtilsVersion = rootProject.hasProperty('androidMapsUtilsVersion') ? rootProject.androidMapsUtilsVersion : DEFAULT_ANDROID_MAPS_UTILS_VERSION
4545

46-
provided "com.facebook.react:react-native:+"
47-
compile "com.google.android.gms:play-services-base:$googlePlayServicesVersion"
48-
compile "com.google.android.gms:play-services-maps:$googlePlayServicesVersion"
49-
compile "com.google.maps.android:android-maps-utils:$androidMapsUtilsVersion"
50-
}
46+
compileOnly "com.facebook.react:react-native:+"
47+
implementation "com.google.android.gms:play-services-base:$googlePlayServicesVersion"
48+
implementation "com.google.android.gms:play-services-maps:$googlePlayServicesVersion"
49+
implementation "com.google.maps.android:android-maps-utils:$androidMapsUtilsVersion"
50+
}

0 commit comments

Comments
 (0)