A Melos-managed monorepo (Dart pub workspace) of Flutter plugins that wrap the Prebid Mobile SDK for header bidding on Android and iOS.
| Package | Description |
|---|---|
packages/prebid_mobile_sdk |
Core plugin. Prebid In-App (rendered) banner, interstitial, rewarded, native, multiformat, in-stream video, plus the Original API keyword handoff (PrebidBannerAdUnit / PrebidInterstitialAdUnit). Depends only on the Prebid SDK. |
packages/prebid_mobile_sdk_gam |
Optional companion. Google Ad Manager rendering via Prebid's GAM (next-gen) event handlers (banner, interstitial, rewarded, GAM native). Bundles the Google Mobile Ads SDK — kept separate so core stays lean. |
packages/prebid_mobile_sdk_admob |
Optional companion. Google AdMob mediation via Prebid's AdMob adapters (banner, interstitial, rewarded, native). Bundles the Google Mobile Ads SDK. |
packages/prebid_mobile_sdk_max |
Optional companion. AppLovin MAX mediation via Prebid's MAX adapters (banner, interstitial, rewarded, native). Bundles the AppLovin MAX SDK. |
example |
Demo app exercising the packages. |
Guides: Getting started.
See each package's README for its API. Start with
packages/prebid_mobile_sdk.
The Prebid Mobile SDK each package release bundles:
| Package | Version | Prebid Android | Prebid iOS | Bundled ad SDK |
|---|---|---|---|---|
prebid_mobile_sdk |
1.1.0 | 3.4.1 |
>= 3.4.1, < 4.0 |
none |
prebid_mobile_sdk_gam |
1.1.0 | 3.4.1 |
>= 3.4.1, < 4.0 |
Google Mobile Ads: play-services-ads 25.5.0 / Google-Mobile-Ads-SDK >= 13.0.0 |
prebid_mobile_sdk_admob |
1.1.0 | 3.4.1 |
>= 3.4.1, < 4.0 |
Google Mobile Ads: play-services-ads 25.5.0 / Google-Mobile-Ads-SDK >= 13.0.0 |
prebid_mobile_sdk_max |
1.1.0 | 3.4.1 |
>= 3.4.1, < 4.0 |
AppLovin MAX: applovin-sdk 13.1.0 / AppLovinSDK >= 13.0.0 |
Android resolves exactly the listed Prebid version. On iOS, CocoaPods and Swift Package Manager pick the newest PrebidMobile release in the range, so a fresh pod install can resolve a newer 3.x patch.
.
├── pubspec.yaml # pub workspace root + Melos config (`melos:` key)
├── packages/
│ ├── prebid_mobile_sdk/ # core plugin
│ ├── prebid_mobile_sdk_gam/ # GAM rendering companion
│ ├── prebid_mobile_sdk_admob/ # AdMob mediation companion
│ └── prebid_mobile_sdk_max/ # AppLovin MAX mediation companion
├── example/ # demo app
├── docs/guides/ # Markdown integration guides
└── tool/compatibility.json # native SDK compatibility data
Requires the Flutter version pinned in .fvmrc (use FVM or
install it directly; CI reads the same file). A single resolve at the repo root
bootstraps every package via the pub workspace:
flutter pub getdart run melos list # list packages
dart run melos run analyze # flutter analyze across all packages
dart run melos run test # flutter test where a test/ dir exists
dart run melos run format # dart format
dart run melos run format:check # fail on unformatted files
dart run melos run generate # regenerate (and format) the Pigeon API
dart run melos run generate:check # fail if the Pigeon output is stale
dart run melos run publish:check # pub publish --dry-run for every package- CI (
flutter_ci.yml), on every push tomainand every pull request:- format, Pigeon codegen, analyze and test on Linux;
pub publish --dry-runfor every package;- example builds: Android (Linux) and iOS (macOS), run after the checks pass.
- Release (
release.yml), on a<package>-v<version>tag: publishes that package to pub.dev with GitHub OIDC (no stored token) and creates a GitHub release from its CHANGELOG. See RELEASING.md.
cd example
flutter runIssues and pull requests are welcome: see CONTRIBUTING.md and the Code of Conduct. Report security issues privately as described in SECURITY.md.