From c70af86e2ee43ea337784b4a5e044d68ca04d30c Mon Sep 17 00:00:00 2001 From: Bilal Syed Date: Wed, 11 Jul 2018 15:30:35 +0300 Subject: [PATCH 1/3] [Android] Fix getInitialLink() is NULL --- .../java/io/invertase/firebase/links/RNFirebaseLinks.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java b/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java index 9c308168..099bd3d3 100644 --- a/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java +++ b/android/src/main/java/io/invertase/firebase/links/RNFirebaseLinks.java @@ -174,7 +174,11 @@ public class RNFirebaseLinks extends ReactContextBaseJavaModule implements Activ // Looks at the internals of the link data to detect whether it's an invitation or not private boolean isInvitation(PendingDynamicLinkData pendingDynamicLinkData) { - return FirebaseAppInvite.getInvitation(pendingDynamicLinkData) != null; + FirebaseAppInvite invite = FirebaseAppInvite.getInvitation(pendingDynamicLinkData); + if (invite != null && invite.getInvitationId() != null && !invite.getInvitationId().isEmpty()) { + return true; + } + return false; } private DynamicLink.Builder getDynamicLinkBuilder(final ReadableMap linkData) { From 94aed54a0a58557d86d19c094cb2b3a1b16eda12 Mon Sep 17 00:00:00 2001 From: Salakar Date: Wed, 11 Jul 2018 14:41:52 +0100 Subject: [PATCH 2/3] fix license format --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 882d74cb..f239cf0d 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "setupFiles": [], "unmockedModulePathPatterns": ["./node_modules/react", "./node_modules/react-native", "./node_modules/react-native-mock", "./node_modules/react-addons-test-utils"] }, - "license": "APACHE-2.0", + "license": "Apache-2.0", "keywords": ["react", "admob", "auth", "config", "digits", "fabric", "functions", "phone-auth", "sms", "firestore", "cloud-firestore", "datastore", "remote-config", "transactions", "react-native", "react-native-firebase", "firebase", "fcm", "apn", "gcm", "analytics", "messaging", "database", "android", "ios", "crash", "firestack", "performance", "firestore", "dynamic-links", "crashlytics"], "peerDependencies": { "react": "*", From 01c274a2f14f93905eacf77c3c3dffe1749afb01 Mon Sep 17 00:00:00 2001 From: Salakar Date: Wed, 11 Jul 2018 14:43:50 +0100 Subject: [PATCH 3/3] 4.3.5 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index dd49450f..d137c2cf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-native-firebase", - "version": "4.3.4", + "version": "4.3.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f239cf0d..23989c2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-firebase", - "version": "4.3.4", + "version": "4.3.5", "author": "Invertase (http://invertase.io)", "description": "A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Storage and more.", "main": "dist/index.js",