Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 5fba490

Browse files
dotdoomkroikie
authored andcommitted
[firebase_auth] Make providerId 'const String' for easier use in switch statements (#1292)
* Make providerId 'const String' to use in "case"
1 parent a3a277a commit 5fba490

File tree

8 files changed

+13
-9
lines changed

8 files changed

+13
-9
lines changed

packages/firebase_auth/CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
## 0.8.3
2+
3+
* Make providerId 'const String' to use in 'case' statement.
4+
15
## 0.8.2+1
26

3-
* Fixed bug where `PhoneCodeAutoRetrievalTimeout` callback was never called.g
7+
* Fixed bug where `PhoneCodeAutoRetrievalTimeout` callback was never called.
48

59
## 0.8.2
610

7-
* Fixed `linkWithCredential` on Android.
11+
* Fixed `linkWithCredential` on Android.
812

913
## 0.8.1+5
1014

packages/firebase_auth/lib/src/auth_provider/email_auth_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
part of firebase_auth;
66

77
class EmailAuthProvider {
8-
static final String providerId = 'password';
8+
static const String providerId = 'password';
99

1010
static AuthCredential getCredential({
1111
String email,

packages/firebase_auth/lib/src/auth_provider/facebook_auth_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
part of firebase_auth;
66

77
class FacebookAuthProvider {
8-
static final String providerId = 'facebook.com';
8+
static const String providerId = 'facebook.com';
99

1010
static AuthCredential getCredential({String accessToken}) {
1111
return AuthCredential._(

packages/firebase_auth/lib/src/auth_provider/github_auth_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
part of firebase_auth;
66

77
class GithubAuthProvider {
8-
static final String providerId = 'github.com';
8+
static const String providerId = 'github.com';
99

1010
static AuthCredential getCredential({@required String token}) {
1111
return AuthCredential._(providerId, <String, String>{'token': token});

packages/firebase_auth/lib/src/auth_provider/google_auth_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
part of firebase_auth;
66

77
class GoogleAuthProvider {
8-
static final String providerId = 'google.com';
8+
static const String providerId = 'google.com';
99

1010
static AuthCredential getCredential({
1111
@required String idToken,

packages/firebase_auth/lib/src/auth_provider/phone_auth_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
part of firebase_auth;
66

77
class PhoneAuthProvider {
8-
static final String providerId = 'phone';
8+
static const String providerId = 'phone';
99

1010
static AuthCredential getCredential({
1111
@required String verificationId,

packages/firebase_auth/lib/src/auth_provider/twitter_auth_provider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
part of firebase_auth;
66

77
class TwitterAuthProvider {
8-
static final String providerId = 'twitter.com';
8+
static const String providerId = 'twitter.com';
99

1010
static AuthCredential getCredential({
1111
@required String authToken,

packages/firebase_auth/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Flutter plugin for Firebase Auth, enabling Android and iOS
44
like Google, Facebook and Twitter.
55
author: Flutter Team <flutter-dev@googlegroups.com>
66
homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_auth
7-
version: 0.8.2+1
7+
version: "0.8.3"
88

99
flutter:
1010
plugin:

0 commit comments

Comments
 (0)