Skip to content

Commit f0149b2

Browse files
committed
feat!: remove unused FBAudienceNetwork framework
- Remove FBAudienceNetwork dependency from iOS implementation - Keep Facebook analytics functionality through FBSDKCoreKit - Update version to 0.20.0 on iOS podspec BREAKING CHANGE: If your app requires FBAudienceNetwork framework, you'll need to include it as a separate dependency in your project.
1 parent d414ed3 commit f0149b2

File tree

5 files changed

+8
-33
lines changed

5 files changed

+8
-33
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
## 0.20.0
2+
### ⚠️ Breaking Changes
3+
- **Remove iOS FBAudienceNetwork dependency** - If your app depends on FBAudienceNetwork framework, you'll need to include it separately in your app
4+
5+
### Features
26
- Update Android `FBSDKCoreKit` to version `18.0` to `19.0`
3-
- Update iOS FBAudienceNetwork to `~> 6.17`
47
- Merge option to set debug enabled feature
58

69
## 0.19.7

example/ios/Podfile.lock

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
PODS:
2-
- facebook_app_events (0.0.1):
3-
- FBAudienceNetwork (~> 6.16)
2+
- facebook_app_events (0.20.0):
43
- FBSDKCoreKit (~> 18.0)
54
- Flutter
65
- FBAEMKit (18.0.0):
76
- FBSDKCoreKit_Basics (= 18.0.0)
8-
- FBAudienceNetwork (6.16.0)
97
- FBSDKCoreKit (18.0.0):
108
- FBAEMKit (= 18.0.0)
119
- FBSDKCoreKit_Basics (= 18.0.0)
@@ -19,7 +17,6 @@ DEPENDENCIES:
1917
SPEC REPOS:
2018
trunk:
2119
- FBAEMKit
22-
- FBAudienceNetwork
2320
- FBSDKCoreKit
2421
- FBSDKCoreKit_Basics
2522

@@ -30,9 +27,8 @@ EXTERNAL SOURCES:
3027
:path: Flutter
3128

3229
SPEC CHECKSUMS:
33-
facebook_app_events: 9699d8bc86de1a27e30b3d7a074d7324bfcdb026
30+
facebook_app_events: cfa07e73912a052992b5f218f79a19a66a99bf1a
3431
FBAEMKit: e34530df538b8eb8aeb53c35867715ba6c63ef0c
35-
FBAudienceNetwork: d1670939884e3a2e0ad98dca98d7e0c841417228
3632
FBSDKCoreKit: d3f479a69127acebb1c6aad91c1a33907bcf6c2f
3733
FBSDKCoreKit_Basics: 017b6dc2a1862024815a8229e75661e627ac1e29
3834
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@
147147
9705A1C41CF9048500538489 /* Embed Frameworks */,
148148
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
149149
7878047FC249226250759C2A /* [CP] Embed Pods Frameworks */,
150-
55C6264CF7F80AA283CFC693 /* [CP] Copy Pods Resources */,
151150
);
152151
buildRules = (
153152
);
@@ -222,24 +221,6 @@
222221
shellPath = /bin/sh;
223222
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
224223
};
225-
55C6264CF7F80AA283CFC693 /* [CP] Copy Pods Resources */ = {
226-
isa = PBXShellScriptBuildPhase;
227-
buildActionMask = 2147483647;
228-
files = (
229-
);
230-
inputPaths = (
231-
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh",
232-
"${PODS_CONFIGURATION_BUILD_DIR}/FBAudienceNetwork/FBAudienceNetwork.bundle",
233-
);
234-
name = "[CP] Copy Pods Resources";
235-
outputPaths = (
236-
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FBAudienceNetwork.bundle",
237-
);
238-
runOnlyForDeploymentPostprocessing = 0;
239-
shellPath = /bin/sh;
240-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
241-
showEnvVarsInLog = 0;
242-
};
243224
7878047FC249226250759C2A /* [CP] Embed Pods Frameworks */ = {
244225
isa = PBXShellScriptBuildPhase;
245226
buildActionMask = 2147483647;

ios/Classes/SwiftFacebookAppEventsPlugin.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import Flutter
22
import UIKit
33
import FBSDKCoreKit
44
import FBSDKCoreKit_Basics
5-
import FBAudienceNetwork
65

76
public class SwiftFacebookAppEventsPlugin: NSObject, FlutterPlugin {
87
public static func register(with registrar: FlutterPluginRegistrar) {
@@ -185,7 +184,7 @@ public class SwiftFacebookAppEventsPlugin: NSObject, FlutterPlugin {
185184
let arguments = call.arguments as? [String: Any] ?? [String: Any]()
186185
let enabled = arguments["enabled"] as! Bool
187186
let collectId = arguments["collectId"] as! Bool
188-
FBAdSettings.setAdvertiserTrackingEnabled(enabled)
187+
Settings.shared.isAdvertiserTrackingEnabled = enabled
189188
Settings.shared.isAdvertiserTrackingEnabled = enabled
190189
Settings.shared.isAdvertiserIDCollectionEnabled = collectId
191190
result(nil)

ios/facebook_app_events.podspec

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'facebook_app_events'
3-
s.version = '0.0.1'
3+
s.version = '0.20.0'
44
s.summary = 'Flutter plugin for Facebook Analytics and App Events'
55
s.description = <<-DESC
66
Flutter plugin for Facebook Analytics and App Events
@@ -19,8 +19,4 @@ Flutter plugin for Facebook Analytics and App Events
1919
# Do not specify PATCH version of FBSDKCoreKit. See README file for explanation
2020
# https://github.com/oddbit/flutter_facebook_app_events#dependencies-on-facebook-sdk
2121
s.dependency 'FBSDKCoreKit', '~> 18.0'
22-
23-
# See docs on FBAudienceNetwork
24-
# https://developers.facebook.com/docs/audience-network/setting-up/platform-setup/ios/add-sdk/
25-
s.dependency 'FBAudienceNetwork', '~> 6.17'
2622
end

0 commit comments

Comments
 (0)