Skip to content

Conversation

@antonoddbit
Copy link
Contributor

  • Update Android FBSDKCoreKit to version 18.0 to 19.0
  • Update FBAudienceNetwork to optimistic 6.17
  • Merge option to set debug enabled feature

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR bumps the plugin version and underlying Facebook SDKs, and merges in an option to enable debug logging when setting advertiser tracking.

  • Version bump to 0.19.8 in pubspec and CHANGELOG
  • Update iOS FBAudienceNetwork dependency to a flexible range
  • Update Android SDK range and add debug/logging behavior in setAdvertiserTracking

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
pubspec.yaml Bumped plugin version from 0.19.7 to 0.19.8
lib/facebook_app_events.dart Simplified doc comment for setAdvertiserTracking
ios/facebook_app_events.podspec Changed FBAudienceNetwork dependency to ~> 6.16
android/src/main/kotlin/.../FacebookAppEventsPlugin.kt Imported LoggingBehavior and implemented debug logging in handler
android/build.gradle Enabled buildConfig and bumped facebook-android-sdk to [18.0,19.0)
CHANGELOG.md Added 0.19.8 section with summary of updates
Comments suppressed due to low confidence (2)

android/src/main/kotlin/id/oddbit/flutter/facebook_app_events/FacebookAppEventsPlugin.kt:104

  • The new handleSetAdvertiserTracking logic lacks unit or integration tests. Consider adding tests to verify both enabled and collectId behaviors on Android.
private fun handleSetAdvertiserTracking(call: MethodCall, result: Result) {

android/src/main/kotlin/id/oddbit/flutter/facebook_app_events/FacebookAppEventsPlugin.kt:17

  • Missing import for FacebookSdk; ensure you import com.facebook.FacebookSdk to avoid unresolved reference errors.
import com.facebook.LoggingBehavior

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

Copilot AI May 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Podspec dependency uses ~> 6.16, which allows updates from 6.16 but doesn’t explicitly bump to 6.17. To reflect an optimistic 6.17, consider using ~> 6.17 or adjusting the lower bound accordingly.

Suggested change
s.dependency 'FBAudienceNetwork', '~> 6.16'
s.dependency 'FBAudienceNetwork', '~> 6.17'

Copilot uses AI. Check for mistakes.
@qeepcologne
Copy link

qeepcologne commented May 21, 2025

I'm asking why the Facebook Audience Network dependency is added at all?
I think for app events, it should not be used and needed. The dependency is added on ios only (found this during gdpr scan).

@antonoddbit
Copy link
Contributor Author

@qeepcologne yes, it is added on iOS podspec for iOS build

@antonoddbit antonoddbit changed the title Fix/bump and 18 check ad version Bump Android FBSDK Core Kit, bump iOS FBAudienceNetwork, and merge debug option May 26, 2025
Version changed to 0.20.0 due to breaking changes
iOS FBAudienceNetwork podspecs
Update example pubspec
@antonoddbit antonoddbit requested a review from DennisAlund June 2, 2025 03:12
@DennisAlund
Copy link
Member

DennisAlund commented Jun 2, 2025

I'm asking why the Facebook Audience Network dependency is added at all? I think for app events, it should not be used and needed. The dependency is added on ios only (found this during gdpr scan).

Thank you for a sharp observation @qeepcologne . We're taking a better look at this to understand if it should be part of the package at all.

  1. If it is correct to keep it in the package, we'll make sure it is consistent across both ios and android
  2. If we have added it by mistake, we'll make sure to remove it.

- 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,3 +1,11 @@
## 0.20.0
### ⚠️ Breaking Changes
- **Remove iOS FBAudienceNetwork dependency** - If your app depends on FBAudienceNetwork framework, you'll need to include it separately in your app
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@DennisAlund DennisAlund merged commit b903ba0 into main Jun 2, 2025
@DennisAlund DennisAlund deleted the fix/bump_and_18_check_AdVersion branch June 2, 2025 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants