Skip to content

Commit

Permalink
Merge pull request #273 from ernest0vm/develop
Browse files Browse the repository at this point in the history
add `FBAdSettings.setAdvertiserTrackingEnabled`
  • Loading branch information
DennisAlund authored Nov 28, 2022
2 parents b6d3abf + 190cdcf commit ccf5c85
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PODS:
- facebook_app_events (0.0.1):
- FBAudienceNetwork (~> 6.9.0)
- FBSDKCoreKit (~> 15.0)
- FBAudienceNetwork (~> 6.12)
- FBSDKCoreKit (~> 15.1)
- Flutter
- FBAEMKit (15.1.0):
- FBSDKCoreKit_Basics (= 15.1.0)
- FBAudienceNetwork (6.9.0)
- FBAudienceNetwork (6.12.0)
- FBSDKCoreKit (15.1.0):
- FBAEMKit (= 15.1.0)
- FBSDKCoreKit_Basics (= 15.1.0)
Expand All @@ -30,9 +30,9 @@ EXTERNAL SOURCES:
:path: Flutter

SPEC CHECKSUMS:
facebook_app_events: 50f806e9b8bd2d2743563c6c541eba83dfbfadcc
facebook_app_events: 1b116476dfbe0fbb66cb21419cf9a6f30b391057
FBAEMKit: c7f82b5145d446bcbbcd50485c032689032fc6a2
FBAudienceNetwork: 83096d73433759c10f9cf9b3bad5e5cff58694cb
FBAudienceNetwork: e0fcc9091fced34910ed0b6da06f129db46ac9e6
FBSDKCoreKit: 7542746fc63a2a38dd6a865eeb54268341f37b83
FBSDKCoreKit_Basics: 92d6b26c0bed30ab09bbdd96dccaa26e6c9978d1
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.18.1"
version: "0.18.2"
fake_async:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions ios/Classes/SwiftFacebookAppEventsPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public class SwiftFacebookAppEventsPlugin: NSObject, FlutterPlugin {
let arguments = call.arguments as? [String: Any] ?? [String: Any]()
let enabled = arguments["enabled"] as! Bool
let collectId = arguments["collectId"] as! Bool
FBAdSettings.setAdvertiserTrackingEnabled(enabled)
Settings.shared.isAdvertiserTrackingEnabled = enabled
Settings.shared.isAdvertiserIDCollectionEnabled = collectId
result(nil)
Expand Down
4 changes: 2 additions & 2 deletions ios/facebook_app_events.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Flutter plugin for Facebook Analytics and App Events

# Do not specify PATCH version of FBSDKCoreKit. See README file for explanation
# https://github.com/oddbit/flutter_facebook_app_events#dependencies-on-facebook-sdk
s.dependency 'FBSDKCoreKit', '~> 15.0'
s.dependency 'FBSDKCoreKit', '~> 15.1'

# See docs on FBAudienceNetwork
# https://developers.facebook.com/docs/audience-network/setting-up/platform-setup/ios/add-sdk/
s.dependency 'FBAudienceNetwork', '~> 6.9'
s.dependency 'FBAudienceNetwork', '~> 6.12'
end

0 comments on commit ccf5c85

Please sign in to comment.