From 55f42d09dfbbe85e1c911bad0bb38070e678dc8c Mon Sep 17 00:00:00 2001 From: Harry Lachenmayer Date: Wed, 30 May 2018 14:30:18 +0100 Subject: [PATCH] Revert "Updated gradle configuration for gradle 3.0.0+ (#2096)" This reverts commit 8cb158e06d9b3e4c1ed9311f78a8dcddfa933e9e. --- 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 eddda00c2..6c369bac8 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -117,7 +117,7 @@ The steps are as described in https://facebook.github.io/react-native/docs/runni ... dependencies { ... - implementation project(':react-native-maps') + compile project(':react-native-maps') } ``` @@ -146,12 +146,12 @@ If you've defined *[project-wide properties](https://developer.android.com/studi ... dependencies { ... - implementation(project(':react-native-maps')){ + compile(project(':react-native-maps')){ exclude group: 'com.google.android.gms', module: 'play-services-base' exclude group: 'com.google.android.gms', module: 'play-services-maps' } - implementation 'com.google.android.gms:play-services-base:10.0.1' - implementation 'com.google.android.gms:play-services-maps:10.0.1' + compile 'com.google.android.gms:play-services-base:10.0.1' + compile 'com.google.android.gms:play-services-maps:10.0.1' } ``` diff --git a/lib/android/build.gradle b/lib/android/build.gradle index acc7f579f..37f62d5bd 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 - 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" -} + 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