Commit c9b2a471 authored by Chris Blazek's avatar Chris Blazek Committed by Mehdi Achour

feat: Google play services versioning (#333)

parent d238de6f
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
### next ### next
* Add Gradle build config that allows a consumer to set Play Services Version from a root-project ext variable.
### 0.15.3 ### 0.15.3
* Fix crash on iOS: prevent insertion of nil values in the dictionary (https://github.com/rebeccahughes/react-native-device-info/pull/328) * Fix crash on iOS: prevent insertion of nil values in the dictionary (https://github.com/rebeccahughes/react-native-device-info/pull/328)
......
...@@ -81,6 +81,17 @@ Run your project (Cmd+R) ...@@ -81,6 +81,17 @@ Run your project (Cmd+R)
<details> <details>
<summary>Android</summary> <summary>Android</summary>
* **_optional_** in `android/build.gradle`:
```gradle
...
ext {
// dependency versions
googlePlayServicesVersion = "<Your Services Version>"
}
...
```
* in `android/app/build.gradle`: * in `android/app/build.gradle`:
```diff ```diff
......
...@@ -19,6 +19,8 @@ android { ...@@ -19,6 +19,8 @@ android {
} }
dependencies { dependencies {
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : "+"
compile 'com.facebook.react:react-native:+' compile 'com.facebook.react:react-native:+'
compile 'com.google.android.gms:play-services-gcm:+' compile "com.google.android.gms:play-services-gcm:$googlePlayServicesVersion"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment