Skip to content

Commit

Permalink
Updated gradle configuration for gradle 3.0.0+ (react-native-maps#2096)
Browse files Browse the repository at this point in the history
* Updated android install to follow the new gradle configuration

* Updated to new gradle 3.0.0+ configuration
  • Loading branch information
MarkOSullivan94 authored and rborn committed Mar 26, 2018
1 parent 35855f9 commit 8cb158e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The steps are as described in https://facebook.github.io/react-native/docs/runni
...
dependencies {
...
compile project(':react-native-maps')
implementation project(':react-native-maps')
}
```

Expand Down Expand Up @@ -135,12 +135,12 @@ If you've defined *[project-wide properties](https://developer.android.com/studi
...
dependencies {
...
compile(project(':react-native-maps')){
implementation(project(':react-native-maps')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
compile 'com.google.android.gms:play-services-base:10.0.1'
compile 'com.google.android.gms:play-services-maps:10.0.1'
implementation 'com.google.android.gms:play-services-base:10.0.1'
implementation 'com.google.android.gms:play-services-maps:10.0.1'
}
```

Expand Down
10 changes: 5 additions & 5 deletions lib/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ dependencies {
def googlePlayServicesVersion = rootProject.hasProperty('googlePlayServicesVersion') ? rootProject.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
def androidMapsUtilsVersion = rootProject.hasProperty('androidMapsUtilsVersion') ? rootProject.androidMapsUtilsVersion : DEFAULT_ANDROID_MAPS_UTILS_VERSION

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

0 comments on commit 8cb158e

Please sign in to comment.