displayio_sdk 0.2.1
displayio_sdk: ^0.2.1 copied to clipboard
Flutter plugin for the DIO (Display.io) ad SDKs — banner, infeed, interstitial, interscroller, audio and native ads on Android and iOS through one Dart API.
0.2.1 #
Fixes the iOS build of 0.2.0.
DioAdOptionsApplier.swiftusedFlutterStandardTypedData— the type backing the newDioInGameAudioConfig(icon:)field — without importingFlutter, so every iOS build of 0.2.0 failed with "Cannot find type 'FlutterStandardTypedData' in scope". Android was unaffected.
0.2.0 #
In-Game Audio customization and a card-less mode.
- Card styling (
DioInGameAudioConfig): background gradient, progress ring track and progress colours, accent colour, badge colours, corner radius, ring width, and switches for theADbadge, the now-playing indicator and the ring. Every field is optional and an unset one keeps the SDK default. - Your own image in the card:
DioInGameAudioConfig(icon:)takes encoded PNG/JPEG bytes andiconPaddingthe gap around them. The image replaces the default audio bars, takes no touches, and yields to the campaign's companion. - Card-less mode:
DioInGameAudioConfig(showCard: false)drops the UI and keeps the audio.DioInGameAudioAd.play()/.pause()drive it — nothing is heard untilplay, and the impression is counted when playback starts rather than on viewability.DioInGameAudioAd.hasCardreports which mode the ad is in, andpreferredSizeis no longer reported when there is no card. - Companion suppression:
DioInGameAudioConfig(companionEnabled: false)keeps the card on its own artwork; the SDK does not even load the companion. - Native SDKs raised to Android 5.8.1 and iOS 4.8.1, where this API lives.
0.1.0 #
New ad format and a diagnostic API.
- In-Game Audio (
DioInGameAudioAd): an audio ad the SDK renders as its own square card — progress ring,ADbadge and a native mute control — which the app positions itself (ad.cardView, typically in aStack). Playback follows attachment and on-screen visibility, so there is noplay/pause. Size it withDioInGameAudioConfig(customWidth:);ad.preferredSizereports the card's natural size. NewAdUnitType.inGameAudio. DioSdk.instance.placements(): lists the placements the SDK loaded for the initialized app id (DioPlacement— id + type). Diagnostics: it returns an empty list before init and on any native error, and never throws, so a settings screen cannot break on it.DioPlacement.typeis null for units this plugin does not model, with the native string kept inrawType.
Both are device-verified on Android and iOS.
0.0.2 #
Native SDK bump.
- Android:
com.brandio.ads:sdk5.7.4 → 5.8.0. - iOS:
DIOSDK4.7.5 → 4.8.0. - Breaking (iOS): the minimum iOS deployment target is now 15.0 (was 13.0). DIOSDK 4.8.0 raised its own platform requirement, so an app targeting iOS 13 or 14 will no longer build against this plugin.
The Dart API is unchanged. Both platforms build, but the native release notes are not published by the vendor, so re-verify ad rendering on a device.
0.0.1 #
Initial release — the DIO (Display.io) Flutter plugin, wrapping the native DIO ad SDKs for Android and iOS behind a single Dart API.
- Core:
DioSdk.instance.initialize/loadAd/sdkVersion, a sealedDioAdresult (DioInlineAd/DioInterstitialAd/DioAudioAd/DioNativeAd), ad lifecycle events, and viewability. - Formats: banner, infeed (video / display / audio), interstitial, interscroller (Dart-driven reveal parallax), inline, InFlowAudio / InRing audio, and native ads.
- Widgets:
DioAdView,DioCompanionView, and the native-ad slot widgets (DioNativeAdView+DioNative{Media,Icon,Cta}View). - Customization via
DioAdOptions— per-load placement styling (audio, interscroller, infeed, pure-audio, native asset params) plus ORTB ad-request and targeting config (DioAdRequestConfig). - Ad metadata:
ad.metadata(DioAdMetadata) exposes the bid-response fields (eCPM, advertiser, creative/campaign ids, nurl/lurl, TTL, …). - Server-to-server / ORTB:
buildOrtbRequest,token, andloadAdFromOrtbfor rendering a bid response the publisher already holds. - Android and iOS are both device-verified across every format.