unified_ads_unity 1.1.0
unified_ads_unity: ^1.1.0 copied to clipboard
Unity Ads adapter for unified_ads. Add it to link only the Unity Ads SDK into your Android and iOS app.
1.1.0 #
- README restyled (✨ Features, 🚀 Getting Started, 📖 Usage, …), with usage for interstitial pacing and ad-free mode
(
AdPacing,UnifiedAds.recordAction,UnifiedAds.setAdFree, all fromunified_ads1.1.0). No adapter code changes. - BREAKING (iOS): CocoaPods support is removed; iOS builds use Swift Package Manager only (the podspec is deleted). Requires Flutter >= 3.44 with SPM enabled and Xcode 26.2+. The deployment target is now set on the Runner target in Xcode. See the migration guide.
- New
Package.swift: the iOS SDK now comes from Unity's official Swift packagehttps://github.com/Unity-Technologies/Unity-Ads-Swift-Package4.21.0 (UnityAds); version unchanged. - Opt-in linking on iOS now works through SPM: the vendor SDK is declared only in this package's
Package.swift, soFlutterGeneratedPluginSwiftPackageresolves it only when the app depends on this package (checked againstPackage.resolvedin CI). - Pigeon bindings regenerated with pigeon ^29.0.8.
- Expired ads are now handled on both platforms (
onAdExpired, as Unity's guides require): an expired interstitial / rewarded ad is dropped, soshow()reportsnotReadyand the core cache loads a fresh one. - iOS names re-checked against the UnityAds 4.21.0
.swiftinterface(showDidFail(_:error:)etc.); comments and docs corrected (4.21.0 has no adaptive banner size; Xcode 26.0.1+). SDK 4.21.0 is still the latest. - README: package-specific.
- No Dart API changes.
1.0.0 #
Initial release: the Unity Ads adapter for unified_ads.
- Banner, interstitial and rewarded ads behind the unified
AdNetworkAdaptercontract (Pigeon + Kotlin + Swift). - Pinned SDKs: Android
com.unity3d.ads:unity-ads4.21.0; iOSUnityAds4.21.0 (CocoaPods). - Adding this package links only this network's SDK. Apps without it never pull it in, which CI verifies.
- Built only on the 4.19+ instance APIs, because the static API is removed in Unity Ads 5.0.
- The reward amount and type come from
NetworkConfig.extras. - Every native error maps to an
AdErrorwith the SDK's own code innativeCode.
Known limitations:
- Runtime-exclusive with
unified_ads_ironsource(LevelPlay): when both are enabled,unityis skipped withconfigConflict. - iOS sources compile only in CI (
flutter build ios --no-codesign) and have not yet run on a device.