From 8cb158e06d9b3e4c1ed9311f78a8dcddfa933e9e Mon Sep 17 00:00:00 2001 From: Mark O'Sullivan Date: Mon, 26 Mar 2018 14:57:41 +0100 Subject: [PATCH] Updated gradle configuration for gradle 3.0.0+ (#2096) * Updated android install to follow the new gradle configuration * Updated to new gradle 3.0.0+ configuration --- docs/installation.md | 8 ++++---- lib/android/build.gradle | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 1db95928a2..b765f82e5d 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -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') } ``` @@ -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' } ``` diff --git a/lib/android/build.gradle b/lib/android/build.gradle index 37f62d5bd1..acc7f579fd 100644 --- a/lib/android/build.gradle +++ b/lib/android/build.gradle @@ -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" -} \ No newline at end of file + 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" +}