diff --git a/examples/with_provider/.metadata b/examples/with_provider/.metadata index 39f2501e..5a2f5d7c 100644 --- a/examples/with_provider/.metadata +++ b/examples/with_provider/.metadata @@ -4,7 +4,7 @@ # This file should be version controlled. version: - revision: f1875d570e39de09040c8f79aa13cc56baab8db1 + revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a channel: stable project_type: app @@ -13,26 +13,11 @@ project_type: app migration: platforms: - platform: root - create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - - platform: android - create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - - platform: ios - create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - - platform: linux - create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 + create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a - platform: macos - create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - - platform: web - create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - - platform: windows - create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 - base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1 + create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a + base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a # User provided section diff --git a/examples/with_provider/ios/Podfile.lock b/examples/with_provider/ios/Podfile.lock index b891ef1f..3aedce56 100644 --- a/examples/with_provider/ios/Podfile.lock +++ b/examples/with_provider/ios/Podfile.lock @@ -1,15 +1,15 @@ PODS: - - FBAEMKit (15.0.0): - - FBSDKCoreKit_Basics (= 15.0.0) - - FBSDKCoreKit (15.0.0): - - FBAEMKit (= 15.0.0) - - FBSDKCoreKit_Basics (= 15.0.0) - - FBSDKCoreKit_Basics (15.0.0) - - FBSDKLoginKit (15.0.0): - - FBSDKCoreKit (= 15.0.0) + - FBAEMKit (15.1.0): + - FBSDKCoreKit_Basics (= 15.1.0) + - FBSDKCoreKit (15.1.0): + - FBAEMKit (= 15.1.0) + - FBSDKCoreKit_Basics (= 15.1.0) + - FBSDKCoreKit_Basics (15.1.0) + - FBSDKLoginKit (15.1.0): + - FBSDKCoreKit (= 15.1.0) - Flutter (1.0.0) - - flutter_facebook_auth (5.0.0): - - FBSDKLoginKit (= 15.0.0) + - flutter_facebook_auth (5.0.4): + - FBSDKLoginKit (~> 15.1.0) - Flutter - flutter_secure_storage (3.3.1): - Flutter @@ -35,12 +35,12 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/flutter_secure_storage/ios" SPEC CHECKSUMS: - FBAEMKit: d8312d8451ead46282adc7f3565ffc4965e3a4a7 - FBSDKCoreKit: 81879058dd06208c0820fc713d054ca54903e8ba - FBSDKCoreKit_Basics: eebc9bb69a0e5d133b92dca53a20716227faa454 - FBSDKLoginKit: 11995469cd7da16fd4d5245e8d2ec61060479270 + FBAEMKit: c7f82b5145d446bcbbcd50485c032689032fc6a2 + FBSDKCoreKit: 7542746fc63a2a38dd6a865eeb54268341f37b83 + FBSDKCoreKit_Basics: 92d6b26c0bed30ab09bbdd96dccaa26e6c9978d1 + FBSDKLoginKit: 4e275d30cf90e92bdf3a7c82857a8642abf23037 Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 - flutter_facebook_auth: ad30745952f77ef167ec2ca5ddf29143c2c8c2e0 + flutter_facebook_auth: c69f4e643b1d9cc9063ec87c9411bd9ec268108f flutter_secure_storage: 7953c38a04c3fdbb00571bcd87d8e3b5ceb9daec PODFILE CHECKSUM: 4e8f8b2be68aeea4c0d5beb6ff1e79fface1d048 diff --git a/examples/with_provider/lib/main.dart b/examples/with_provider/lib/main.dart index d0ca0a97..c19341b6 100644 --- a/examples/with_provider/lib/main.dart +++ b/examples/with_provider/lib/main.dart @@ -10,7 +10,7 @@ import 'package:provider/provider.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); - if (kIsWeb) { + if (kIsWeb || defaultTargetPlatform == TargetPlatform.macOS) { await FacebookAuth.i.webAndDesktopInitialize( appId: '1329834907365798', cookie: true, @@ -41,13 +41,13 @@ class MyApp extends StatelessWidget { Widget build(BuildContext context) { return FutureBuilder( future: () async { - final sessionRepository = Provider.of(context); - final user = await sessionRepository.user; - if (user != null) { - // ignore: use_build_context_synchronously - context.read().updateUser(user); - return true; - } + // final sessionRepository = Provider.of(context); + // final user = await sessionRepository.user; + // if (user != null) { + // // ignore: use_build_context_synchronously + // context.read().updateUser(user); + // return true; + // } return false; }.call(), builder: (_, snapShot) { diff --git a/examples/with_provider/macos/Podfile b/examples/with_provider/macos/Podfile index dade8dfa..f9ebb8dc 100644 --- a/examples/with_provider/macos/Podfile +++ b/examples/with_provider/macos/Podfile @@ -1,4 +1,4 @@ -platform :osx, '10.11' +platform :osx, '11.0' # CocoaPods analytics sends network stats synchronously affecting flutter build latency. ENV['COCOAPODS_DISABLE_STATS'] = 'true' diff --git a/examples/with_provider/macos/Podfile.lock b/examples/with_provider/macos/Podfile.lock new file mode 100644 index 00000000..c45bc03c --- /dev/null +++ b/examples/with_provider/macos/Podfile.lock @@ -0,0 +1,28 @@ +PODS: + - facebook_auth_desktop (0.0.3): + - FlutterMacOS + - flutter_secure_storage_macos (3.3.1): + - FlutterMacOS + - FlutterMacOS (1.0.0) + +DEPENDENCIES: + - facebook_auth_desktop (from `Flutter/ephemeral/.symlinks/plugins/facebook_auth_desktop/macos`) + - flutter_secure_storage_macos (from `Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos`) + - FlutterMacOS (from `Flutter/ephemeral`) + +EXTERNAL SOURCES: + facebook_auth_desktop: + :path: Flutter/ephemeral/.symlinks/plugins/facebook_auth_desktop/macos + flutter_secure_storage_macos: + :path: Flutter/ephemeral/.symlinks/plugins/flutter_secure_storage_macos/macos + FlutterMacOS: + :path: Flutter/ephemeral + +SPEC CHECKSUMS: + facebook_auth_desktop: 0ec755e3b01669ec14776af18b6945671a788916 + flutter_secure_storage_macos: 6ceee8fbc7f484553ad17f79361b556259df89aa + FlutterMacOS: ae6af50a8ea7d6103d888583d46bd8328a7e9811 + +PODFILE CHECKSUM: 8d40c19d3cbdb380d870685c3a564c989f1efa52 + +COCOAPODS: 1.11.3 diff --git a/examples/with_provider/macos/Runner.xcodeproj/project.pbxproj b/examples/with_provider/macos/Runner.xcodeproj/project.pbxproj index f7086abc..c28a6b32 100644 --- a/examples/with_provider/macos/Runner.xcodeproj/project.pbxproj +++ b/examples/with_provider/macos/Runner.xcodeproj/project.pbxproj @@ -26,6 +26,7 @@ 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; + CB5A73CD82E67CC6A8AAE5E7 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 823548DCCF977AA93620FA86 /* Pods_Runner.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -54,7 +55,7 @@ /* Begin PBXFileReference section */ 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; - 33CC10ED2044A3C60003C045 /* flutter_facebook_auth_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "flutter_facebook_auth_example.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10ED2044A3C60003C045 /* flutter_facebook_auth_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = flutter_facebook_auth_example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; @@ -66,8 +67,13 @@ 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; + 6B69730D838EB8851A8C3681 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; + 823548DCCF977AA93620FA86 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; + BBB064ACC8E9B18B69074960 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + D6B55BA329183D4200810047 /* RunnerDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RunnerDebug.entitlements; sourceTree = ""; }; + FAFDE4619DDC2CADC017E105 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -75,6 +81,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + CB5A73CD82E67CC6A8AAE5E7 /* Pods_Runner.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -99,6 +106,7 @@ 33CEB47122A05771004F2AC0 /* Flutter */, 33CC10EE2044A3C60003C045 /* Products */, D73912EC22F37F3D000D13A0 /* Frameworks */, + A104072BD55E1B5B6AB2FBC7 /* Pods */, ); sourceTree = ""; }; @@ -135,6 +143,7 @@ 33FAB671232836740065AC1E /* Runner */ = { isa = PBXGroup; children = ( + D6B55BA329183D4200810047 /* RunnerDebug.entitlements */, 33CC10F02044A3C60003C045 /* AppDelegate.swift */, 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, 33E51913231747F40026EE4D /* DebugProfile.entitlements */, @@ -145,9 +154,20 @@ path = Runner; sourceTree = ""; }; + A104072BD55E1B5B6AB2FBC7 /* Pods */ = { + isa = PBXGroup; + children = ( + FAFDE4619DDC2CADC017E105 /* Pods-Runner.debug.xcconfig */, + 6B69730D838EB8851A8C3681 /* Pods-Runner.release.xcconfig */, + BBB064ACC8E9B18B69074960 /* Pods-Runner.profile.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; D73912EC22F37F3D000D13A0 /* Frameworks */ = { isa = PBXGroup; children = ( + 823548DCCF977AA93620FA86 /* Pods_Runner.framework */, ); name = Frameworks; sourceTree = ""; @@ -159,11 +179,13 @@ isa = PBXNativeTarget; buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; buildPhases = ( + C5F85E89BFB49CAB29BBFDED /* [CP] Check Pods Manifest.lock */, 33CC10E92044A3C60003C045 /* Sources */, 33CC10EA2044A3C60003C045 /* Frameworks */, 33CC10EB2044A3C60003C045 /* Resources */, 33CC110E2044A8840003C045 /* Bundle Framework */, 3399D490228B24CF009A79C7 /* ShellScript */, + 396B2D1E2C25F9670306ABAC /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -270,6 +292,45 @@ shellPath = /bin/sh; shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire"; }; + 396B2D1E2C25F9670306ABAC /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + C5F85E89BFB49CAB29BBFDED /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -359,13 +420,16 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = 4X8W3GTB3N; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 11.0; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; }; @@ -484,14 +548,17 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; - CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; + CODE_SIGN_ENTITLEMENTS = Runner/RunnerDebug.entitlements; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = 4X8W3GTB3N; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 11.0; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -505,13 +572,16 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = 4X8W3GTB3N; INFOPLIST_FILE = Runner/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 11.0; PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_VERSION = 5.0; }; diff --git a/examples/with_provider/macos/Runner.xcworkspace/contents.xcworkspacedata b/examples/with_provider/macos/Runner.xcworkspace/contents.xcworkspacedata index 1d526a16..21a3cc14 100644 --- a/examples/with_provider/macos/Runner.xcworkspace/contents.xcworkspacedata +++ b/examples/with_provider/macos/Runner.xcworkspace/contents.xcworkspacedata @@ -4,4 +4,7 @@ + + diff --git a/examples/with_provider/macos/Runner/DebugProfile.entitlements b/examples/with_provider/macos/Runner/DebugProfile.entitlements index dddb8a30..1fbcb4ea 100644 --- a/examples/with_provider/macos/Runner/DebugProfile.entitlements +++ b/examples/with_provider/macos/Runner/DebugProfile.entitlements @@ -6,7 +6,11 @@ com.apple.security.cs.allow-jit + com.apple.security.network.client + com.apple.security.network.server + keychain-access-groups + diff --git a/examples/with_provider/macos/Runner/Release.entitlements b/examples/with_provider/macos/Runner/Release.entitlements index 852fa1a4..c312f418 100644 --- a/examples/with_provider/macos/Runner/Release.entitlements +++ b/examples/with_provider/macos/Runner/Release.entitlements @@ -4,5 +4,11 @@ com.apple.security.app-sandbox + com.apple.security.network.client + + com.apple.security.network.server + + keychain-access-groups + diff --git a/examples/with_provider/macos/Runner/RunnerDebug.entitlements b/examples/with_provider/macos/Runner/RunnerDebug.entitlements new file mode 100644 index 00000000..1fbcb4ea --- /dev/null +++ b/examples/with_provider/macos/Runner/RunnerDebug.entitlements @@ -0,0 +1,16 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.cs.allow-jit + + com.apple.security.network.client + + com.apple.security.network.server + + keychain-access-groups + + + diff --git a/examples/with_provider/pubspec.lock b/examples/with_provider/pubspec.lock index a5e403b8..91f80329 100644 --- a/examples/with_provider/pubspec.lock +++ b/examples/with_provider/pubspec.lock @@ -49,7 +49,7 @@ packages: name: facebook_auth_desktop url: "https://pub.dartlang.org" source: hosted - version: "0.0.4" + version: "0.0.5" fake_async: dependency: transitive description: @@ -68,21 +68,21 @@ packages: name: flutter_facebook_auth url: "https://pub.dartlang.org" source: hosted - version: "5.0.1" + version: "5.0.4" flutter_facebook_auth_platform_interface: dependency: transitive description: name: flutter_facebook_auth_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.1.1" flutter_facebook_auth_web: dependency: transitive description: name: flutter_facebook_auth_web url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.1.1" flutter_lints: dependency: "direct dev" description: diff --git a/examples/with_provider/pubspec.yaml b/examples/with_provider/pubspec.yaml index e1361410..26a0f030 100644 --- a/examples/with_provider/pubspec.yaml +++ b/examples/with_provider/pubspec.yaml @@ -35,7 +35,7 @@ dependencies: # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.2 provider: ^6.0.3 - flutter_facebook_auth: ^5.0.1 + flutter_facebook_auth: 5.0.4 dev_dependencies: flutter_test: diff --git a/facebook_auth/CHANGELOG.md b/facebook_auth/CHANGELOG.md index 8eac3c87..d67ff149 100644 --- a/facebook_auth/CHANGELOG.md +++ b/facebook_auth/CHANGELOG.md @@ -1,3 +1,10 @@ +### version: 5.0.4 +- Removed FBSDKCoreKit from ios. +### version: 5.0.3 +- Fixed bug parsing `dataAccessExpirationTime` throws `String is not a subtype of int` on macOS. +- Updated to `flutter_facebook_auth_platform_interface: ^4.1.1`. +- Updated to `flutter_facebook_auth_web: ^4.1.1`. +- Updated to `facebook_auth_desktop: ^0.0.5` ### version: 5.0.2 - Added FBSDKCoreKit on iOS. - Updated Facebook iOS SDK to 15.1.0 diff --git a/facebook_auth/example/pubspec.lock b/facebook_auth/example/pubspec.lock index f8f89d73..d2caaa72 100644 --- a/facebook_auth/example/pubspec.lock +++ b/facebook_auth/example/pubspec.lock @@ -42,7 +42,7 @@ packages: name: facebook_auth_desktop url: "https://pub.dartlang.org" source: hosted - version: "0.0.4" + version: "0.0.5" ffi: dependency: transitive description: @@ -68,21 +68,21 @@ packages: path: ".." relative: true source: path - version: "5.0.2" + version: "5.0.4" flutter_facebook_auth_platform_interface: dependency: transitive description: name: flutter_facebook_auth_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.1.1" flutter_facebook_auth_web: dependency: transitive description: name: flutter_facebook_auth_web url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.1.1" flutter_secure_storage: dependency: transitive description: diff --git a/facebook_auth/ios/flutter_facebook_auth.podspec b/facebook_auth/ios/flutter_facebook_auth.podspec index 47397253..eeaa1c14 100644 --- a/facebook_auth/ios/flutter_facebook_auth.podspec +++ b/facebook_auth/ios/flutter_facebook_auth.podspec @@ -4,7 +4,7 @@ # Pod::Spec.new do |s| s.name = 'flutter_facebook_auth' - s.version = '5.0.2' + s.version = '5.0.4' s.summary = 'Plugin to Facebook authentication for iOS in your Flutter app' s.description = <<-DESC Plugin to Facebook authentication for iOS in your Flutter app @@ -17,7 +17,7 @@ Pod::Spec.new do |s| s.dependency 'Flutter' - s.dependency 'FBSDKCoreKit', '~> 15.1.0' + # s.dependency 'FBSDKCoreKit', '~> 15.1.0' s.dependency 'FBSDKLoginKit', '~> 15.1.0' s.platform = :ios, '11.0' diff --git a/facebook_auth/pubspec.lock b/facebook_auth/pubspec.lock index 7e2447a8..fd5b62f2 100644 --- a/facebook_auth/pubspec.lock +++ b/facebook_auth/pubspec.lock @@ -84,7 +84,7 @@ packages: name: facebook_auth_desktop url: "https://pub.dartlang.org" source: hosted - version: "0.0.4" + version: "0.0.5" fake_async: dependency: transitive description: @@ -110,14 +110,14 @@ packages: name: flutter_facebook_auth_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.1.1" flutter_facebook_auth_web: dependency: "direct main" description: name: flutter_facebook_auth_web url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.1.1" flutter_secure_storage: dependency: transitive description: diff --git a/facebook_auth/pubspec.yaml b/facebook_auth/pubspec.yaml index 5adb6dad..59fc43c2 100644 --- a/facebook_auth/pubspec.yaml +++ b/facebook_auth/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_facebook_auth description: The easiest way to add facebook login to your flutter app. Feature includes getting user information, profile picture and more. This plugin also supports Web and macOS. -version: 5.0.2 +version: 5.0.4 homepage: https://github.com/darwin-morocho/flutter-facebook-auth environment: @@ -10,14 +10,14 @@ environment: dependencies: flutter: sdk: flutter - flutter_facebook_auth_platform_interface: ^4.1.0 + flutter_facebook_auth_platform_interface: ^4.1.1 # flutter_facebook_auth_platform_interface: # path: ../facebook_auth_platform_interface - flutter_facebook_auth_web: ^4.1.0 + flutter_facebook_auth_web: ^4.1.1 # flutter_facebook_auth_web: # path: ../facebook_auth_web - facebook_auth_desktop: ^0.0.4 + facebook_auth_desktop: ^0.0.5 # path: ../facebook_auth_desktop dev_dependencies: diff --git a/facebook_auth_desktop/.dart_tool/package_config.json b/facebook_auth_desktop/.dart_tool/package_config.json index ad4bd094..558ed6fa 100644 --- a/facebook_auth_desktop/.dart_tool/package_config.json +++ b/facebook_auth_desktop/.dart_tool/package_config.json @@ -51,7 +51,7 @@ }, { "name": "flutter_facebook_auth_platform_interface", - "rootUri": "file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.0", + "rootUri": "file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.1", "packageUri": "lib/", "languageVersion": "2.12" }, @@ -224,7 +224,7 @@ "languageVersion": "2.12" } ], - "generated": "2022-10-28T12:06:21.497054Z", + "generated": "2022-11-06T19:25:12.347707Z", "generator": "pub", "generatorVersion": "2.18.2" } diff --git a/facebook_auth_desktop/.dart_tool/package_config_subset b/facebook_auth_desktop/.dart_tool/package_config_subset index e74771f4..1502c103 100644 --- a/facebook_auth_desktop/.dart_tool/package_config_subset +++ b/facebook_auth_desktop/.dart_tool/package_config_subset @@ -32,8 +32,8 @@ file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.1/lib/ flutter_facebook_auth_platform_interface 2.12 -file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.0/ -file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.0/lib/ +file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.1/ +file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.1/lib/ flutter_lints 2.12 file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_lints-1.0.4/ diff --git a/facebook_auth_desktop/.dart_tool/version b/facebook_auth_desktop/.dart_tool/version index 2c6109e5..eedb52ba 100644 --- a/facebook_auth_desktop/.dart_tool/version +++ b/facebook_auth_desktop/.dart_tool/version @@ -1 +1 @@ -3.3.4 \ No newline at end of file +3.3.6 \ No newline at end of file diff --git a/facebook_auth_desktop/CHANGELOG.md b/facebook_auth_desktop/CHANGELOG.md index 32e5e158..92b5d966 100644 --- a/facebook_auth_desktop/CHANGELOG.md +++ b/facebook_auth_desktop/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.0.5 +- flutter_facebook_auth_platform_interface: ^4.1.1 ## 0.0.4 - flutter_facebook_auth_platform_interface: ^4.1.0 diff --git a/facebook_auth_desktop/example/.dart_tool/package_config.json b/facebook_auth_desktop/example/.dart_tool/package_config.json index fca1d346..6d4f21ae 100644 --- a/facebook_auth_desktop/example/.dart_tool/package_config.json +++ b/facebook_auth_desktop/example/.dart_tool/package_config.json @@ -63,7 +63,7 @@ }, { "name": "flutter_facebook_auth_platform_interface", - "rootUri": "file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.0", + "rootUri": "file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.1", "packageUri": "lib/", "languageVersion": "2.12" }, @@ -236,7 +236,7 @@ "languageVersion": "2.16" } ], - "generated": "2022-10-28T12:06:21.792345Z", + "generated": "2022-11-06T19:25:13.917842Z", "generator": "pub", "generatorVersion": "2.18.2" } diff --git a/facebook_auth_desktop/example/.dart_tool/package_config_subset b/facebook_auth_desktop/example/.dart_tool/package_config_subset index f54beb14..18d1796f 100644 --- a/facebook_auth_desktop/example/.dart_tool/package_config_subset +++ b/facebook_auth_desktop/example/.dart_tool/package_config_subset @@ -40,8 +40,8 @@ file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/fake_async-1.3.1/lib/ flutter_facebook_auth_platform_interface 2.12 -file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.0/ -file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.0/lib/ +file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.1/ +file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth_platform_interface-4.1.1/lib/ flutter_lints 2.12 file:///Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_lints-1.0.4/ diff --git a/facebook_auth_desktop/example/.dart_tool/version b/facebook_auth_desktop/example/.dart_tool/version index 2c6109e5..eedb52ba 100644 --- a/facebook_auth_desktop/example/.dart_tool/version +++ b/facebook_auth_desktop/example/.dart_tool/version @@ -1 +1 @@ -3.3.4 \ No newline at end of file +3.3.6 \ No newline at end of file diff --git a/facebook_auth_desktop/example/.flutter-plugins-dependencies b/facebook_auth_desktop/example/.flutter-plugins-dependencies index bd47bb0b..608207e3 100644 --- a/facebook_auth_desktop/example/.flutter-plugins-dependencies +++ b/facebook_auth_desktop/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-6.0.0/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-6.0.0/","native_build":true,"dependencies":[]}],"macos":[{"name":"facebook_auth_desktop","path":"/Users/darwin/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage_macos","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_macos-1.1.1/","native_build":true,"dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_linux-1.1.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_windows-1.1.2/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_web-1.0.2/","dependencies":[]}]},"dependencyGraph":[{"name":"facebook_auth_desktop","dependencies":["flutter_secure_storage"]},{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":[]}],"date_created":"2022-10-28 07:06:21.841844","version":"3.3.4"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-6.0.0/","native_build":true,"dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage-6.0.0/","native_build":true,"dependencies":[]}],"macos":[{"name":"facebook_auth_desktop","path":"/Users/darwin/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/","native_build":true,"dependencies":[]},{"name":"flutter_secure_storage_macos","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_macos-1.1.1/","native_build":true,"dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_linux-1.1.1/","native_build":true,"dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_windows-1.1.2/","native_build":true,"dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/Users/darwin/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_secure_storage_web-1.0.2/","dependencies":[]}]},"dependencyGraph":[{"name":"facebook_auth_desktop","dependencies":["flutter_secure_storage"]},{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":[]}],"date_created":"2022-11-06 14:25:13.957107","version":"3.3.6"} \ No newline at end of file diff --git a/facebook_auth_desktop/example/macos/Flutter/ephemeral/Flutter-Generated.xcconfig b/facebook_auth_desktop/example/macos/Flutter/ephemeral/Flutter-Generated.xcconfig index c9cfd031..b594ba17 100644 --- a/facebook_auth_desktop/example/macos/Flutter/ephemeral/Flutter-Generated.xcconfig +++ b/facebook_auth_desktop/example/macos/Flutter/ephemeral/Flutter-Generated.xcconfig @@ -1,13 +1,11 @@ // This is a generated file; do not edit or check into version control. -FLUTTER_ROOT=/Users/darwinmorocho/development/flutter -FLUTTER_APPLICATION_PATH=/Users/darwinmorocho/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/example +FLUTTER_ROOT=/Users/darwin/development/flutter +FLUTTER_APPLICATION_PATH=/Users/darwin/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/example COCOAPODS_PARALLEL_CODE_SIGN=true -FLUTTER_TARGET=/Users/darwinmorocho/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/example/lib/main.dart FLUTTER_BUILD_DIR=build FLUTTER_BUILD_NAME=1.0.0 FLUTTER_BUILD_NUMBER=1 -DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== DART_OBFUSCATION=false TRACK_WIDGET_CREATION=true TREE_SHAKE_ICONS=false -PACKAGE_CONFIG=/Users/darwinmorocho/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/example/.dart_tool/package_config.json +PACKAGE_CONFIG=.dart_tool/package_config.json diff --git a/facebook_auth_desktop/example/macos/Flutter/ephemeral/flutter_export_environment.sh b/facebook_auth_desktop/example/macos/Flutter/ephemeral/flutter_export_environment.sh index f1ba26f9..b4b76e84 100755 --- a/facebook_auth_desktop/example/macos/Flutter/ephemeral/flutter_export_environment.sh +++ b/facebook_auth_desktop/example/macos/Flutter/ephemeral/flutter_export_environment.sh @@ -1,14 +1,12 @@ #!/bin/sh # This is a generated file; do not edit or check into version control. -export "FLUTTER_ROOT=/Users/darwinmorocho/development/flutter" -export "FLUTTER_APPLICATION_PATH=/Users/darwinmorocho/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/example" +export "FLUTTER_ROOT=/Users/darwin/development/flutter" +export "FLUTTER_APPLICATION_PATH=/Users/darwin/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/example" export "COCOAPODS_PARALLEL_CODE_SIGN=true" -export "FLUTTER_TARGET=/Users/darwinmorocho/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/example/lib/main.dart" export "FLUTTER_BUILD_DIR=build" export "FLUTTER_BUILD_NAME=1.0.0" export "FLUTTER_BUILD_NUMBER=1" -export "DART_DEFINES=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==" export "DART_OBFUSCATION=false" export "TRACK_WIDGET_CREATION=true" export "TREE_SHAKE_ICONS=false" -export "PACKAGE_CONFIG=/Users/darwinmorocho/Documents/flutter/flutter-facebook-auth/facebook_auth_desktop/example/.dart_tool/package_config.json" +export "PACKAGE_CONFIG=.dart_tool/package_config.json" diff --git a/facebook_auth_desktop/example/pubspec.lock b/facebook_auth_desktop/example/pubspec.lock index 1dbdced4..d0deb5f8 100644 --- a/facebook_auth_desktop/example/pubspec.lock +++ b/facebook_auth_desktop/example/pubspec.lock @@ -56,7 +56,7 @@ packages: path: ".." relative: true source: path - version: "0.0.4" + version: "0.0.5" fake_async: dependency: transitive description: @@ -75,7 +75,7 @@ packages: name: flutter_facebook_auth_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.1.1" flutter_lints: dependency: "direct dev" description: diff --git a/facebook_auth_desktop/pubspec.lock b/facebook_auth_desktop/pubspec.lock index 67b129a2..74116f3d 100644 --- a/facebook_auth_desktop/pubspec.lock +++ b/facebook_auth_desktop/pubspec.lock @@ -61,7 +61,7 @@ packages: name: flutter_facebook_auth_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.1.1" flutter_lints: dependency: "direct dev" description: diff --git a/facebook_auth_desktop/pubspec.yaml b/facebook_auth_desktop/pubspec.yaml index b7149851..16c8eff6 100644 --- a/facebook_auth_desktop/pubspec.yaml +++ b/facebook_auth_desktop/pubspec.yaml @@ -1,6 +1,6 @@ name: facebook_auth_desktop description: macOS support for flutter_facebook_auth -version: 0.0.4 +version: 0.0.5 homepage: environment: @@ -12,7 +12,7 @@ dependencies: sdk: flutter http: ^0.13.5 flutter_secure_storage: ^6.0.0 - flutter_facebook_auth_platform_interface: ^4.1.0 + flutter_facebook_auth_platform_interface: ^4.1.1 dev_dependencies: diff --git a/facebook_auth_platform_interface/CHANGELOG.md b/facebook_auth_platform_interface/CHANGELOG.md index 3b47ac66..5f7e92e0 100644 --- a/facebook_auth_platform_interface/CHANGELOG.md +++ b/facebook_auth_platform_interface/CHANGELOG.md @@ -1,3 +1,5 @@ +### 4.1.1 +- Fixed bug parsing `dataAccessExpirationTime` throws `String is not a subtype of int` on macOS. ### 4.1.0 - Added dataAccessExpirationTime to AccessToken. ### 4.0.1 diff --git a/facebook_auth_platform_interface/lib/src/access_token.dart b/facebook_auth_platform_interface/lib/src/access_token.dart index ec93a68b..10a65738 100644 --- a/facebook_auth_platform_interface/lib/src/access_token.dart +++ b/facebook_auth_platform_interface/lib/src/access_token.dart @@ -50,6 +50,18 @@ class AccessToken { /// /// [json] data returned by the platform channel factory AccessToken.fromJson(Map json) { + late final DateTime dataAccessExpirationTime; + + if (json['dataAccessExpirationTime'] is String) { + dataAccessExpirationTime = DateTime.parse( + json['dataAccessExpirationTime'], + ); + } else { + dataAccessExpirationTime = DateTime.fromMillisecondsSinceEpoch( + json['dataAccessExpirationTime'], + ); + } + return AccessToken( userId: json['userId'], token: json['token'], @@ -69,8 +81,7 @@ class AccessToken { grantedPermissions: json['grantedPermissions'] != null ? List.from(json['grantedPermissions']) : null, - dataAccessExpirationTime: - DateTime.fromMillisecondsSinceEpoch(json['dataAccessExpirationTime']), + dataAccessExpirationTime: dataAccessExpirationTime, ); } diff --git a/facebook_auth_platform_interface/pubspec.yaml b/facebook_auth_platform_interface/pubspec.yaml index 2ab2dd64..38694b85 100644 --- a/facebook_auth_platform_interface/pubspec.yaml +++ b/facebook_auth_platform_interface/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_facebook_auth_platform_interface description: A common platform interface for the flutter_facebook_auth plugin. -version: 4.1.0 +version: 4.1.1 homepage: https://github.com/darwin-morocho/flutter-facebook-auth/tree/master/facebook_auth_platform_interface environment: diff --git a/facebook_auth_web/CHANGELOG.md b/facebook_auth_web/CHANGELOG.md index 3ecd5d71..19bfed06 100644 --- a/facebook_auth_web/CHANGELOG.md +++ b/facebook_auth_web/CHANGELOG.md @@ -1,4 +1,6 @@ -### 4.0.1 +### 4.1.1 +- Updated flutter_facebook_auth_platform_interface: ^4.1.1 +### 4.1.0 - Updated flutter_facebook_auth_platform_interface: ^4.1.0 ### 4.0.1 - Updated flutter_facebook_auth_platform_interface: ^4.0.1 diff --git a/facebook_auth_web/pubspec.lock b/facebook_auth_web/pubspec.lock index a174a5df..f46c97a2 100644 --- a/facebook_auth_web/pubspec.lock +++ b/facebook_auth_web/pubspec.lock @@ -80,7 +80,7 @@ packages: name: flutter_facebook_auth_platform_interface url: "https://pub.dartlang.org" source: hosted - version: "4.1.0" + version: "4.1.1" flutter_test: dependency: "direct dev" description: flutter diff --git a/facebook_auth_web/pubspec.yaml b/facebook_auth_web/pubspec.yaml index a7f277d8..294f36be 100644 --- a/facebook_auth_web/pubspec.yaml +++ b/facebook_auth_web/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_facebook_auth_web description: web support for flutter_facebook_auth -version: 4.1.0 +version: 4.1.1 homepage: https://github.com/darwin-morocho/flutter-facebook-auth/tree/master/facebook_auth_web @@ -14,7 +14,7 @@ dependencies: flutter_web_plugins: sdk: flutter js: ^0.6.3 - flutter_facebook_auth_platform_interface: ^4.1.0 + flutter_facebook_auth_platform_interface: ^4.1.1 # flutter_facebook_auth_platform_interface: # path: ../facebook_auth_platform_interface diff --git a/website/docs/intro.md b/website/docs/intro.md index 5bfa6764..d3154ded 100644 --- a/website/docs/intro.md +++ b/website/docs/intro.md @@ -27,7 +27,7 @@ Add the following to your `pubspec.yaml` ```yaml dependencies: - flutter_facebook_auth: ^5.0.1 + flutter_facebook_auth: ^5.0.4 ``` diff --git a/website/docs/macos.md b/website/docs/macos.md index 59330660..1197e488 100644 --- a/website/docs/macos.md +++ b/website/docs/macos.md @@ -13,7 +13,7 @@ Now in `xcode` select the `Runner` target and go to **Signing & Capabilities** a Captura de Pantalla 2022-05-08 a la(s) 17 17 23 -Unlinke ios, android and web for desktop app the facebook session data is not stored by default. In that case this plugin uses `flutter_secure_storage` to +Unlinke ios, android and web for desktop apps the facebook session data is not stored by default. In that case this plugin uses `flutter_secure_storage` to secure store the session data. To use `flutter_secure_storage` on macOS you need to add the `Keychain Sharing` capability @@ -31,7 +31,7 @@ void main() async { appId: "1329834907365798", cookie: true, xfbml: true, - version: "v13.0", + version: "v14.0", ); } runApp(MyApp()); @@ -55,3 +55,8 @@ void main() async { runApp(MyApp()); } ``` + +Now in your facebook console > Facebook Login > Settings and make sure you have enabled `Login from Devices` , +`Login with the JavaScript SDK` and finally check that `https://www.facebook.com/` is added in your `Allowed Domains for the JavaScript SDK` + +![](https://user-images.githubusercontent.com/15864336/200191538-435b722b-190a-4d30-b684-cf448e192366.png) \ No newline at end of file