From a7c53942627d47cd3a3588b302abe0b8da5f8927 Mon Sep 17 00:00:00 2001 From: timtraversy Date: Thu, 22 Aug 2019 15:19:31 -0400 Subject: [PATCH 1/3] Check for null --- packages/firebase_auth/lib/src/firebase_auth.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/firebase_auth/lib/src/firebase_auth.dart b/packages/firebase_auth/lib/src/firebase_auth.dart index 8f0c30a13544..a046d5ab553a 100644 --- a/packages/firebase_auth/lib/src/firebase_auth.dart +++ b/packages/firebase_auth/lib/src/firebase_auth.dart @@ -119,7 +119,7 @@ class FirebaseAuth { return await channel.invokeListMethod( 'fetchSignInMethodsForEmail', {'email': email, 'app': app.name}, - ); + ) ?? >[]; } /// Triggers the Firebase Authentication backend to send a password-reset From b2da2bb5ffef08f8e42f7522a91aaa9ee84b521c Mon Sep 17 00:00:00 2001 From: timtraversy Date: Thu, 22 Aug 2019 15:24:47 -0400 Subject: [PATCH 2/3] Bump version and describe --- packages/firebase_auth/CHANGELOG.md | 4 ++++ packages/firebase_auth/pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/firebase_auth/CHANGELOG.md b/packages/firebase_auth/CHANGELOG.md index d2b0aa1a4e34..18ee992a144c 100644 --- a/packages/firebase_auth/CHANGELOG.md +++ b/packages/firebase_auth/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.14.0+3 + +* Handle incorrect response from native iOS SDK. + ## 0.14.0+2 * Reduce compiler warnings on iOS port by replacing `int` with `long` backing in returned timestamps. diff --git a/packages/firebase_auth/pubspec.yaml b/packages/firebase_auth/pubspec.yaml index 163957b97e9b..3ca1336ba40f 100755 --- a/packages/firebase_auth/pubspec.yaml +++ b/packages/firebase_auth/pubspec.yaml @@ -4,7 +4,7 @@ description: Flutter plugin for Firebase Auth, enabling Android and iOS like Google, Facebook and Twitter. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_auth -version: 0.14.0+2 +version: 0.14.0+3 flutter: plugin: From 24e24025e3b84de67478c8e366d8a29fa5442704 Mon Sep 17 00:00:00 2001 From: timtraversy Date: Thu, 22 Aug 2019 17:36:57 -0400 Subject: [PATCH 3/3] formatting --- packages/firebase_auth/lib/src/firebase_auth.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/firebase_auth/lib/src/firebase_auth.dart b/packages/firebase_auth/lib/src/firebase_auth.dart index a046d5ab553a..892fce8ad7bc 100644 --- a/packages/firebase_auth/lib/src/firebase_auth.dart +++ b/packages/firebase_auth/lib/src/firebase_auth.dart @@ -117,9 +117,10 @@ class FirebaseAuth { }) async { assert(email != null); return await channel.invokeListMethod( - 'fetchSignInMethodsForEmail', - {'email': email, 'app': app.name}, - ) ?? >[]; + 'fetchSignInMethodsForEmail', + {'email': email, 'app': app.name}, + ) ?? + >[]; } /// Triggers the Firebase Authentication backend to send a password-reset