Skip to content

Commit

Permalink
Version Update
Browse files Browse the repository at this point in the history
  • Loading branch information
fysoul17 committed Jan 26, 2021
1 parent 7b7c3f7 commit 4b23922
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 41 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.1.0] - 26/Jan/2021

- Updated firebase versions and Kakao SDK.

## [2.0.5] - 24/Nov/2020

- Added emailRequired parameter for Kakao Login. Setting true will force Kakao sign-in to have email.
Expand Down
28 changes: 14 additions & 14 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ packages:
name: cloud_functions
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.0+1"
version: "0.9.0"
cloud_functions_platform_interface:
dependency: transitive
description:
name: cloud_functions_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "4.0.1"
cloud_functions_web:
dependency: transitive
description:
name: cloud_functions_web
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "3.1.3"
collection:
dependency: transitive
description:
Expand Down Expand Up @@ -119,7 +119,7 @@ packages:
name: firebase_analytics
url: "https://pub.dartlang.org"
source: hosted
version: "6.2.0"
version: "7.0.1"
firebase_analytics_platform_interface:
dependency: transitive
description:
Expand All @@ -140,49 +140,49 @@ packages:
name: firebase_auth
url: "https://pub.dartlang.org"
source: hosted
version: "0.18.3"
version: "0.20.0+1"
firebase_auth_platform_interface:
dependency: transitive
description:
name: firebase_auth_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "3.0.1"
firebase_auth_simplify:
dependency: "direct main"
description:
path: ".."
relative: true
source: path
version: "2.0.5"
version: "2.1.0"
firebase_auth_web:
dependency: transitive
description:
name: firebase_auth_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.2"
version: "0.3.2+6"
firebase_core:
dependency: transitive
description:
name: firebase_core
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.2"
version: "0.7.0"
firebase_core_platform_interface:
dependency: transitive
description:
name: firebase_core_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "3.0.1"
firebase_core_web:
dependency: transitive
description:
name: firebase_core_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.1"
version: "0.2.1+3"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -267,7 +267,7 @@ packages:
name: kakao_flutter_sdk
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.2"
version: "0.6.0-beta.1"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -316,7 +316,7 @@ packages:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "1.0.4"
pedantic:
dependency: transitive
description:
Expand All @@ -330,7 +330,7 @@ packages:
name: platform
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
version: "3.0.0-nullsafety.3"
plugin_platform_interface:
dependency: transitive
description:
Expand Down
12 changes: 4 additions & 8 deletions lib/src/api/firebase_apple_auth_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ class FirebaseAppleAuthAPI implements BaseAuthAPI {
@override
Future<UserCredential> signIn() async {
try {
final authResult =
await _firebaseAuth.signInWithCredential(await _getCredential());
final authResult = await _firebaseAuth.signInWithCredential(await _getCredential());
assert(authResult.user.uid == _firebaseAuth.currentUser.uid);

// When sign in is done, update email info.
Expand Down Expand Up @@ -59,8 +58,7 @@ class FirebaseAppleAuthAPI implements BaseAuthAPI {
final credential = OAuthCredential(
providerId: "apple.com", // MUST be "apple.com"
signInMethod: "oauth", // MUST be "oauth"
accessToken: nativeAppleCred
.identityToken, // propagate Apple ID token to BOTH accessToken and idToken parameters
accessToken: nativeAppleCred.identityToken, // propagate Apple ID token to BOTH accessToken and idToken parameters
idToken: nativeAppleCred.identityToken,
rawNonce: nonce,
);
Expand Down Expand Up @@ -94,12 +92,10 @@ class FirebaseAppleAuthAPI implements BaseAuthAPI {
return String.fromCharCodes(charCodes);
}

/// Google API does not need sign up.
/// Apple API does not need sign up.
@override
Future<UserCredential> signUp() {
throw PlatformException(
code: "UNSUPPORTED_FUNCTION",
message: "Google Signin does not need sign up.");
throw PlatformException(code: "UNSUPPORTED_FUNCTION", message: "Apple Signin does not need sign up.");
}

@override
Expand Down
26 changes: 13 additions & 13 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@ packages:
name: cloud_functions
url: "https://pub.dartlang.org"
source: hosted
version: "0.7.0+1"
version: "0.9.0"
cloud_functions_platform_interface:
dependency: transitive
description:
name: cloud_functions_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "4.0.1"
cloud_functions_web:
dependency: transitive
description:
name: cloud_functions_web
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
version: "3.1.3"
collection:
dependency: transitive
description:
Expand Down Expand Up @@ -112,7 +112,7 @@ packages:
name: firebase_analytics
url: "https://pub.dartlang.org"
source: hosted
version: "6.2.0"
version: "7.0.1"
firebase_analytics_platform_interface:
dependency: transitive
description:
Expand All @@ -133,42 +133,42 @@ packages:
name: firebase_auth
url: "https://pub.dartlang.org"
source: hosted
version: "0.18.3"
version: "0.20.0+1"
firebase_auth_platform_interface:
dependency: transitive
description:
name: firebase_auth_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
version: "3.0.1"
firebase_auth_web:
dependency: transitive
description:
name: firebase_auth_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.2"
version: "0.3.2+6"
firebase_core:
dependency: "direct main"
description:
name: firebase_core
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.2"
version: "0.7.0"
firebase_core_platform_interface:
dependency: transitive
description:
name: firebase_core_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "3.0.1"
firebase_core_web:
dependency: transitive
description:
name: firebase_core_web
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.1"
version: "0.2.1+3"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -253,7 +253,7 @@ packages:
name: kakao_flutter_sdk
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.2"
version: "0.6.0-beta.1"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -302,7 +302,7 @@ packages:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
version: "1.0.4"
pedantic:
dependency: transitive
description:
Expand All @@ -316,7 +316,7 @@ packages:
name: platform
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
version: "3.0.0-nullsafety.3"
plugin_platform_interface:
dependency: transitive
description:
Expand Down
12 changes: 6 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: firebase_auth_simplify
description: A high-level framework of Firebase Auth package that wraps several lines of codes to one line in order to easily use sign-in and out function.
version: 2.0.5
version: 2.1.0
homepage: https://github.com/fysoul17/firebase_auth_simplify

environment:
Expand All @@ -10,15 +10,15 @@ dependencies:
flutter:
sdk: flutter

firebase_core: ^0.5.2
firebase_auth: ^0.18.3
cloud_functions: ^0.7.0+1
firebase_analytics: ^6.2.0 # Without this, flutter_kakao_login will fail.
firebase_core: ^0.7.0
firebase_auth: ^0.20.0
cloud_functions: ^0.9.0
firebase_analytics: ^7.0.1 # Without this, flutter_kakao_login will fail.

provider: ^4.3.1

google_sign_in: ^4.5.1
kakao_flutter_sdk: ^0.5.2
kakao_flutter_sdk: ^0.6.0-beta.1
flutter_facebook_login: ^3.0.0
http: ^0.12.0+4 # Used for fetching profiles from Facebook GraphAPI
sign_in_with_apple: ^2.5.4
Expand Down

0 comments on commit 4b23922

Please sign in to comment.