Skip to content

Commit

Permalink
3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwin Morocho committed May 19, 2021
1 parent e8626ad commit e569dc3
Show file tree
Hide file tree
Showing 18 changed files with 44 additions and 27 deletions.
2 changes: 1 addition & 1 deletion docs/es/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Agregue lo siguiente a su `pubspec.yaml`

```yaml
dependencies:
flutter_facebook_auth: ^3.3.4
flutter_facebook_auth: ^3.4.0
```
#### ** Sin Null Safety **
Expand Down
2 changes: 1 addition & 1 deletion docs/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Add the following to your `pubspec.yaml`

```yaml
dependencies:
flutter_facebook_auth: ^3.3.4
flutter_facebook_auth: ^3.4.0
```
#### ** Without Null Safety **
Expand Down
6 changes: 6 additions & 0 deletions facebook_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

### 3.4.0
- Updated to `flutter_facebook_auth_platform_interface:^ 2.6.0`
- Updated to `flutter_facebook_auth_web: ^2.6.0`
- Removed LoginBehavior and FacebookAuthErrorCode class.
- Added LoginBehavior enum.

### 3.3.4
- Added boolean isWebSdkInitialized;
### 3.3.3+1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import 'package:google_fonts/google_fonts.dart';
import 'package:provider/provider.dart';

class LoginView extends StatelessWidget {
@override
String get id => 'login-view';

@override
Widget build(BuildContext context) {
return Consumer<SplashController>(builder: (_, controller, __) {
Expand Down
6 changes: 3 additions & 3 deletions facebook_auth/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,21 @@ packages:
path: ".."
relative: true
source: path
version: "3.3.4"
version: "3.4.0"
flutter_facebook_auth_platform_interface:
dependency: transitive
description:
name: flutter_facebook_auth_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.0"
flutter_facebook_auth_web:
dependency: transitive
description:
name: flutter_facebook_auth_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0+1"
version: "2.6.0"
flutter_web_plugins:
dependency: transitive
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion facebook_auth/lib/flutter_facebook_auth.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class FacebookAuth implements FacebookAuthPlatform {
@override
Future<LoginResult> login({
List<String> permissions = const ['email', 'public_profile'],
String loginBehavior = LoginBehavior.DIALOG_ONLY,
LoginBehavior loginBehavior = LoginBehavior.dialogOnly,
}) =>
_.login(permissions: permissions, loginBehavior: loginBehavior);

Expand Down
4 changes: 2 additions & 2 deletions facebook_auth/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ packages:
name: flutter_facebook_auth_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.0"
flutter_facebook_auth_web:
dependency: "direct main"
description:
name: flutter_facebook_auth_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0+1"
version: "2.6.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
6 changes: 3 additions & 3 deletions facebook_auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_facebook_auth
description: The easiest way to add facebook login to your flutter app, get user information, profile picture and more. Web support included.
version: 3.3.4
version: 3.4.0
homepage: https://github.com/darwin-morocho/flutter-facebook-auth

environment:
Expand All @@ -10,10 +10,10 @@ environment:
dependencies:
flutter:
sdk: flutter
flutter_facebook_auth_platform_interface: ^2.5.0
flutter_facebook_auth_platform_interface: ^2.6.0
# flutter_facebook_auth_platform_interface:
# path: ../facebook_auth_platform_interface
flutter_facebook_auth_web: ^2.5.0+1
flutter_facebook_auth_web: ^2.6.0
# flutter_facebook_auth_web:
# path: ../facebook_auth_web

Expand Down
4 changes: 4 additions & 0 deletions facebook_auth_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 2.6.0
- Removed LoginBehavior and FacebookAuthErrorCode class.
- Added enum LoginBehavior.
- Improved tests.
### 2.5.0
- Added isWebSdkInitialized;

Expand Down
8 changes: 6 additions & 2 deletions facebook_auth_platform_interface/lib/src/access_token.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ class AccessToken {
applicationId: json['applicationId'],
graphDomain: json['graphDomain'],
isExpired: json['isExpired'],
declinedPermissions: json['declinedPermissions'] != null ? List<String>.from(json['declinedPermissions']) : null,
grantedPermissions: json['grantedPermissions'] != null ? List<String>.from(json['grantedPermissions']) : null,
declinedPermissions: json['declinedPermissions'] != null
? List<String>.from(json['declinedPermissions'])
: null,
grantedPermissions: json['grantedPermissions'] != null
? List<String>.from(json['grantedPermissions'])
: null,
);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import 'dart:convert';
import 'package:flutter/services.dart';
import 'dart:io' show Platform;
import 'package:flutter/foundation.dart' show visibleForTesting, defaultTargetPlatform, TargetPlatform;
import 'package:flutter/foundation.dart'
show visibleForTesting, defaultTargetPlatform, TargetPlatform;

import 'facebook_auth_plaftorm.dart';
import 'facebook_permissions.dart';
Expand All @@ -12,7 +13,8 @@ import 'login_behavior.dart';
/// class to make calls to the facebook login SDK
class FacebookAuthPlatformImplementation extends FacebookAuthPlatform {
@visibleForTesting
MethodChannel channel = const MethodChannel('app.meedu/flutter_facebook_auth');
MethodChannel channel =
const MethodChannel('app.meedu/flutter_facebook_auth');

/// make a login request using the facebook SDK
///
Expand Down Expand Up @@ -71,7 +73,9 @@ class FacebookAuthPlatformImplementation extends FacebookAuthPlatform {
final result = await channel.invokeMethod("getUserData", {
"fields": fields,
});
return Platform.isAndroid ? jsonDecode(result) : Map<String, dynamic>.from(result); //null or dynamic data
return Platform.isAndroid
? jsonDecode(result)
: Map<String, dynamic>.from(result); //null or dynamic data
}

/// Sign Out from Facebook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ abstract class FacebookAuthPlatform extends PlatformInterface {
static FacebookAuthPlatform get instance => _instance;

@visibleForTesting
static FacebookAuthPlatform getInstance() => FacebookAuthPlatformImplementation();
static FacebookAuthPlatform getInstance() =>
FacebookAuthPlatformImplementation();

// ignore: unnecessary_getters_setters
static set instance(FacebookAuthPlatform i) {
Expand Down
2 changes: 1 addition & 1 deletion facebook_auth_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_facebook_auth_platform_interface
description: A common platform interface for the flutter_facebook_auth plugin.
version: 2.5.0
version: 2.6.0
homepage: https://github.com/darwin-morocho/flutter-facebook-auth/tree/master/facebook_auth_platform_interface

environment:
Expand Down
2 changes: 1 addition & 1 deletion facebook_auth_web/.flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"/Users/darwin/development/flutter/packages/integration_test/","dependencies":[]}],"android":[{"name":"integration_test","path":"/Users/darwin/development/flutter/packages/integration_test/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"flutter_facebook_auth_web","path":"/Users/darwin/Documents/meedu/flutter-facebook-auth/facebook_auth_web/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_facebook_auth_web","dependencies":[]},{"name":"integration_test","dependencies":[]}],"date_created":"2021-05-19 13:55:54.813183","version":"2.0.5"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"integration_test","path":"/Users/darwin/development/flutter/packages/integration_test/","dependencies":[]}],"android":[{"name":"integration_test","path":"/Users/darwin/development/flutter/packages/integration_test/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[{"name":"flutter_facebook_auth_web","path":"/Users/darwin/Documents/meedu/flutter-facebook-auth/facebook_auth_web/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_facebook_auth_web","dependencies":[]},{"name":"integration_test","dependencies":[]}],"date_created":"2021-05-19 14:01:28.352976","version":"2.0.5"}
3 changes: 2 additions & 1 deletion facebook_auth_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

### 2.6.0
- Updated flutter_facebook_auth_platform_interface: ^2.6.0
### 2.5.0+1
- Print log when the facebook sdk was not initialized.

Expand Down
2 changes: 1 addition & 1 deletion facebook_auth_web/lib/src/facebook_auth_plugin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class FlutterFacebookAuthPlugin extends FacebookAuthPlatform {
@override
Future<LoginResult> login({
List<String> permissions = const ['email', 'public_profile'],
String loginBehavior = LoginBehavior.DIALOG_ONLY,
LoginBehavior loginBehavior = LoginBehavior.dialogOnly,
}) async {
if (!_initialized) {
return LoginResult(
Expand Down
2 changes: 1 addition & 1 deletion facebook_auth_web/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ packages:
name: flutter_facebook_auth_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.5.0"
version: "2.6.0"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
4 changes: 2 additions & 2 deletions facebook_auth_web/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_facebook_auth_web
description: web support for flutter_facebook_auth
version: 2.5.0+1
version: 2.6.0
homepage: https://github.com/darwin-morocho/flutter-facebook-auth/tree/master/facebook_auth_web

environment:
Expand All @@ -13,7 +13,7 @@ dependencies:
flutter_web_plugins:
sdk: flutter
js: ^0.6.3
flutter_facebook_auth_platform_interface: ^2.5.0
flutter_facebook_auth_platform_interface: ^2.6.0
# flutter_facebook_auth_platform_interface:
# path: ../facebook_auth_platform_interface

Expand Down

0 comments on commit e569dc3

Please sign in to comment.