From 1135e83f58a044830067b875927942770adc3c4a Mon Sep 17 00:00:00 2001 From: Darwin Date: Tue, 18 Jun 2024 20:54:06 -0500 Subject: [PATCH] Updated Facebook iOS SDK to 17.0.2 --- facebook_auth/CHANGELOG.md | 8 ++++ facebook_auth/example/ios/Podfile.lock | 38 +++++++++---------- .../ios/flutter_facebook_auth.podspec | 4 +- facebook_auth/pubspec.yaml | 2 +- website/docs/app-tracking-transparency.md | 31 --------------- website/docs/ios.md | 3 +- website/docs/login.md | 21 ++++++++++ 7 files changed, 53 insertions(+), 54 deletions(-) diff --git a/facebook_auth/CHANGELOG.md b/facebook_auth/CHANGELOG.md index 2df22909..4ee24914 100644 --- a/facebook_auth/CHANGELOG.md +++ b/facebook_auth/CHANGELOG.md @@ -1,3 +1,11 @@ +### 7.0.1 +- Updated Facebook iOS SDK to 17.0.2 +- IMPORTANT: If you are upgrading from a previous version + on iOS you must update your pod dependencies: + ```shell + cd ios && pod update flutter_facebook_auth + ``` + ### 7.0.0 - iOS: Added `nonce` parameter in `login` function. - **BREAKING CHANGE** Removed the `grantedPermissions` getter. diff --git a/facebook_auth/example/ios/Podfile.lock b/facebook_auth/example/ios/Podfile.lock index 767234d4..5dd9a416 100644 --- a/facebook_auth/example/ios/Podfile.lock +++ b/facebook_auth/example/ios/Podfile.lock @@ -1,15 +1,15 @@ PODS: - - FBAEMKit (17.0.1): - - FBSDKCoreKit_Basics (= 17.0.1) - - FBSDKCoreKit (17.0.1): - - FBAEMKit (= 17.0.1) - - FBSDKCoreKit_Basics (= 17.0.1) - - FBSDKCoreKit_Basics (17.0.1) - - FBSDKLoginKit (17.0.1): - - FBSDKCoreKit (= 17.0.1) + - FBAEMKit (17.0.2): + - FBSDKCoreKit_Basics (= 17.0.2) + - FBSDKCoreKit (17.0.2): + - FBAEMKit (= 17.0.2) + - FBSDKCoreKit_Basics (= 17.0.2) + - FBSDKCoreKit_Basics (17.0.2) + - FBSDKLoginKit (17.0.2): + - FBSDKCoreKit (= 17.0.2) - Flutter (1.0.0) - - flutter_facebook_auth (7.0.0-dev.6): - - FBSDKLoginKit (~> 17.0.0) + - flutter_facebook_auth (7.0.1): + - FBSDKLoginKit (~> 17.0.2) - Flutter - flutter_secure_storage (6.0.0): - Flutter @@ -51,17 +51,17 @@ EXTERNAL SOURCES: :path: ".symlinks/plugins/url_launcher_ios/ios" SPEC CHECKSUMS: - FBAEMKit: 97eaf41451b49691447df831f7f425229ae64b66 - FBSDKCoreKit: e34084567d11cfdd4787ace2b1a0255bedf34ade - FBSDKCoreKit_Basics: 3d78e5fe00504e5c1aed1c48de0654c3a1565d15 - FBSDKLoginKit: 9a581053879a1e6fc3fab8ead341c78c6a318255 + FBAEMKit: 619f96ea65427e8afca240d5b0f4703738dfdf5c + FBSDKCoreKit: a5f384db2e9ee84e98494fed8f983d2bd79accff + FBSDKCoreKit_Basics: d35c775aaf243a2d731dfae7be3a74b1987285ab + FBSDKLoginKit: f8ca5f7ab7c4e5b93e729d94975b0db7fcc511ed Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 - flutter_facebook_auth: 3fdaeec95ae1042ba587f8f499b998ac3fbc3fb3 - flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be - path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c + flutter_facebook_auth: 4fa1dc3fa624284a5ddfdf9e4a2b7945b3835949 + flutter_secure_storage: d33dac7ae2ea08509be337e775f6b59f1ff45f12 + path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46 permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2 - url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812 + url_launcher_ios: 5334b05cef931de560670eeae103fd3e431ac3fe PODFILE CHECKSUM: 3abe3ee81d8e1bcf71c9b55258bce7758dc971eb -COCOAPODS: 1.14.3 +COCOAPODS: 1.15.2 diff --git a/facebook_auth/ios/flutter_facebook_auth.podspec b/facebook_auth/ios/flutter_facebook_auth.podspec index 6d3565a7..74c33ecc 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 = '7.0.0' + s.version = '7.0.1' 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 @@ -18,7 +18,7 @@ Pod::Spec.new do |s| # s.dependency 'FBSDKCoreKit', '~> 15.1.0' - s.dependency 'FBSDKLoginKit', '~> 17.0.0' + s.dependency 'FBSDKLoginKit', '~> 17.0.2' s.platform = :ios, '11.0' # Flutter.framework does not contain a i386 slice. diff --git a/facebook_auth/pubspec.yaml b/facebook_auth/pubspec.yaml index c077231b..189c88f7 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: 7.0.0 +version: 7.0.1 homepage: https://github.com/darwin-morocho/flutter-facebook-auth environment: diff --git a/website/docs/app-tracking-transparency.md b/website/docs/app-tracking-transparency.md index 103cb1d8..8b137891 100644 --- a/website/docs/app-tracking-transparency.md +++ b/website/docs/app-tracking-transparency.md @@ -1,32 +1 @@ -# App Tracking Transparency -Since **iOS 14.5** all apps that they want to track the user activity to share data across others providers needs to request -the **AppTrackingTransparency** permission. - -If you want to track the user activity after the login process follow the next steps. - -In your `Info.plist` add the `FacebookAutoLogAppEventsEnabled` key only if you don't have it and set the value to `false` -``` -FacebookAutoLogAppEventsEnabled - -``` -Also if you don't have the `NSUserTrackingUsageDescription` key you need to add it -``` -NSUserTrackingUsageDescription -Your reason, why you want to track the user -``` - -Next you need to ask to the user about the **AppTrackingTransparency** permission. To do that you can use [permission_handler](https://pub.dev/packages/permission_handler) - -```dart -final status = await Permission.appTrackingTransparency.request(); -if (status == PermissionStatus.granted) { - await FacebookAuth.i.autoLogAppEventsEnabled(true); - print("isAutoLogAppEventsEnabled:: ${await FacebookAuth.i.isAutoLogAppEventsEnabled}"); -} -``` - -You can use `FacebookAuth.i.isAutoLogAppEventsEnabled` to check if the AutoLogAppEvents are enabled. - - -> For more info check the example folder. diff --git a/website/docs/ios.md b/website/docs/ios.md index dd471aab..f521929e 100644 --- a/website/docs/ios.md +++ b/website/docs/ios.md @@ -103,4 +103,5 @@ For more info check https://github.com/darwin-morocho/flutter-facebook-auth/issues/261 https://github.com/darwin-morocho/flutter-facebook-auth/issues/6 -::: \ No newline at end of file +::: + diff --git a/website/docs/login.md b/website/docs/login.md index e54a652a..ec9d6741 100644 --- a/website/docs/login.md +++ b/website/docs/login.md @@ -41,6 +41,27 @@ final LoginResult result = await FacebookAuth.instance.login( // ) ``` +::: INFO +# App Tracking Transparency + +Since **iOS 17** apple all iOS apps must request the **AppTrackingTransparency** permission before the facebook login. + + If the user has not granted the AdvertiserTracking permission, the login process will now enter a [Limited Login mode](https://developers.facebook.com/docs/facebook-login/limited-login). + + +In your `Info.plist` add the `NSUserTrackingUsageDescription` key only if you don't have it. +``` +NSUserTrackingUsageDescription +Your reason, why you want to track the user +``` + +Next you need to ask to the user about the **AppTrackingTransparency** permission. To do that you can use [permission_handler](https://pub.dev/packages/permission_handler) + +```dart +await Permission.appTrackingTransparency.request(); +final LoginResult result = await FacebookAuth.instance.login(); +``` +::: ## BREAKING CHANGES TO SUPPORT THE LIMITED LOGIN - iOS: Added `nonce` parameter in `login` function.