From a0eaa22b48af69ef5ec23839d0cbf768d20e86e7 Mon Sep 17 00:00:00 2001 From: Valentino Stoll Date: Thu, 24 Mar 2016 12:01:27 -0400 Subject: [PATCH] Upgrade google services api to latest version and document changes in README Closes #1 LGTM given by: @nhance Squashed commit of the following: commit dad9fca73202a08f2b3cc61e5dce7ccb507afc84 Author: Valentino Stoll Date: Thu Mar 24 11:59:03 2016 -0400 Bump version to signify possible breaking change commit 592195604d4a3d1efd4234b7f4f0daffb7f94302 Author: Valentino Stoll Date: Thu Mar 24 11:58:41 2016 -0400 Update the README with new instructions on adding google services gcm --- README.md | 7 ++++--- android/build.gradle | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c82b998..1ea131a 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,12 @@ https://github.com/oney/TestGcm - Run `npm install react-native-gcm-android --save` -- In `android/build.gradle` +- In `android/build.gradle`, **visit the [google-services repo](https://bintray.com/android/android-tools/com.google.gms.google-services/) for the latest version to use** + ```gradle dependencies { classpath 'com.android.tools.build:gradle:1.3.1' - classpath 'com.google.gms:google-services:1.5.0-beta3' // <- Add this line + classpath 'com.google.gms:google-services:2.1.0-alpha3' // <- Add this line ``` - In `android/settings.gradle`, add @@ -35,7 +36,7 @@ dependencies { compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:23.0.1" compile "com.facebook.react:react-native:0.16.+" - compile 'com.google.android.gms:play-services-gcm:8.3.0' // <- Add this line + compile 'com.google.android.gms:play-services-gcm:8.4.0' // <- Add this line compile project(':RNGcmAndroid') // <- Add this line compile project(':react-native-system-notification') // <- Add this line } diff --git a/android/build.gradle b/android/build.gradle index 8d4bc9a..bff1520 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -18,7 +18,7 @@ android { dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.facebook.react:react-native:0.17.+' - compile 'com.google.android.gms:play-services-gcm:8.1.0' + compile 'com.google.android.gms:play-services-gcm:8.4.0' compile 'com.android.support:appcompat-v7:23.0.0' compile project(':react-native-system-notification') } diff --git a/package.json b/package.json index 244643d..67113e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-gcm-android", - "version": "0.1.9", + "version": "0.2.0", "repository": { "type": "git", "url": "git+https://github.com/oney/react-native-gcm-android.git"