Skip to content

gma_mediation_meta: add SwiftPM (SPM) support — extends #1395 to the Meta mediation package#1435

Open
qeepcologne wants to merge 1 commit into
googleads:mainfrom
qeepcologne:main
Open

gma_mediation_meta: add SwiftPM (SPM) support — extends #1395 to the Meta mediation package#1435
qeepcologne wants to merge 1 commit into
googleads:mainfrom
qeepcologne:main

Conversation

@qeepcologne
Copy link
Copy Markdown

@qeepcologne qeepcologne commented May 20, 2026

Summary

#1395 added Swift Package Manager support to the core google_mobile_ads plugin, but the mediation packages weren't included. This PR extends the same treatment to gma_mediation_meta, so apps using Flutter's SwiftPM iOS integration (no CocoaPods) can link the Meta Audience Network mediation adapter.

  • Adds packages/mediation/gma_mediation_meta/ios/gma_mediation_meta/Package.swift. The SPM target depends on MetaAdapterTarget from Google's googleads-mobile-ios-mediation-meta package — the SPM equivalent of the GoogleMobileAdsMediationFacebook pod the podspec declares.
  • Mirrors the dual podspec + SPM layout Adds ‎google_mobile_ads support for Swift Package Manager #1395 established for google_mobile_ads: sources moved from ios/Classes/ to ios/gma_mediation_meta/Sources/gma_mediation_meta/, podspec source_files repointed — both CocoaPods and SPM consumers keep working.

Context

Distinct from #1395 (that one is the core plugin; this is the Meta mediation adapter package). The same approach would apply to the other gma_mediation_* packages.

Test plan

  • CocoaPods consumer still resolves (pod lib lint).
  • SPM consumer resolves MetaAdapterTarget and links the Meta adapter.

Adds a `Package.swift` so the plugin can be consumed by Flutter's
Swift Package Manager iOS integration (no CocoaPods). The SPM target
depends on `MetaAdapterTarget` from Google's
`googleads-mobile-ios-mediation-meta` package — the SPM equivalent of
the `GoogleMobileAdsMediationFacebook` pod the podspec declares.

Sources moved from `ios/Classes/` to
`ios/gma_mediation_meta/Sources/gma_mediation_meta/` (the layout SPM
expects) and the podspec `source_files` repointed accordingly, so both
CocoaPods and SPM consumers keep working.
@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 20, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@qeepcologne
Copy link
Copy Markdown
Author

Closing — SwiftPM rollout for this repo is being handled upstream (core landed in #1395). Keeping these mediation-package changes in our fork for now.

@qeepcologne qeepcologne reopened this May 20, 2026
@qeepcologne qeepcologne changed the title gma_mediation_meta: add SwiftPM Package.swift for iOS gma_mediation_meta: add SwiftPM (SPM) support — extends #1395 to the Meta mediation package May 20, 2026
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.

1 participant