Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down