From 6e7a49cccd2be9de53c0a458fbe694ebf51fecc8 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Thu, 28 Feb 2019 16:16:16 -0300 Subject: [PATCH] Fix crash when fresh install android when getting the fcm token (#2608) --- android/app/build.gradle | 1 + android/build.gradle | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 99f6b1294..d9c55ef5f 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -208,6 +208,7 @@ dependencies { implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:percent:28.0.0' + implementation "com.google.firebase:firebase-messaging:17.3.0" implementation "com.facebook.react:react-native:+" // From node_modules implementation project(':react-native-document-picker') implementation project(':react-native-keychain') diff --git a/android/build.gradle b/android/build.gradle index 3524e4ee2..3c826c44c 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -14,7 +14,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.3.1' - classpath 'com.google.gms:google-services:3.2.0' + classpath 'com.google.gms:google-services:4.2.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/package-lock.json b/package-lock.json index 835a4950d..85dd37e7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11994,8 +11994,8 @@ } }, "react-native-notifications": { - "version": "github:enahum/react-native-notifications#ae66562fb9ad167cf8078def3588895049881859", - "from": "github:enahum/react-native-notifications#ae66562fb9ad167cf8078def3588895049881859", + "version": "github:enahum/react-native-notifications#fcfed22dfee7a02e43f4d8acc5cf6310fa18bd6a", + "from": "github:enahum/react-native-notifications#fcfed22dfee7a02e43f4d8acc5cf6310fa18bd6a", "requires": { "core-js": "^1.0.0", "uuid": "^2.0.3" diff --git a/package.json b/package.json index bd366668e..bae708fdc 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "react-native-linear-gradient": "2.5.3", "react-native-local-auth": "github:enahum/react-native-local-auth#cc9ce2f468fbf7b431dfad3191a31aaa9227a6ab", "react-native-navigation": "github:migbot/react-native-navigation#03c623c373f818827a463ca0fe90f86f56e71b2f", - "react-native-notifications": "github:enahum/react-native-notifications#ae66562fb9ad167cf8078def3588895049881859", + "react-native-notifications": "github:enahum/react-native-notifications#fcfed22dfee7a02e43f4d8acc5cf6310fa18bd6a", "react-native-passcode-status": "1.1.1", "react-native-permissions": "1.1.1", "react-native-recyclerview-list": "enahum/react-native-recyclerview-list.git#a2d26bc7b2623cae25e947ba3905f702434717bf",