encore_flutter 2.0.0 copy "encore_flutter: ^2.0.0" to clipboard
encore_flutter: ^2.0.0 copied to clipboard

Flutter plugin wrapping the native Encore iOS and Android SDKs for monetization, offers, and entitlements. All offer UI is rendered natively via StoreKit (iOS) and Play Billing (Android).

2.0.0 #

Migrates the plugin onto the native Encore 2.0 surface (iOS EncoreKit 2.0.0, Android com.encorekit:encore 2.0.1). Breaking, with no compatibility shim; see "Migrating from 1.x" in the README for the full walkthrough.

Android 2.0.0 is not usable and must not be pinned: its published AAR shipped the 2.0 public API obfuscated, so nothing could compile against it. 2.0.1 is the first Android release that exposes the surface this plugin needs.

Breaking #

  • onPurchaseRequest and onPurchaseRequestResult are gone. Both native SDKs deleted onPurchaseRequest in 2.0 and replaced it with a registered purchase controller. Implement EncorePurchaseController and pass the instance to Encore.shared.configure(purchaseController: ...). The controller returns a three-valued EncorePurchaseResult (purchased / cancelled / pending) instead of nothing (1.x onPurchaseRequest, which could not report success at all) or a bool (1.x onPurchaseRequestResult, which reported deferred purchases — Ask to Buy, SCA — as failures).
  • onPurchaseComplete is gone, along with EncoreBillingPurchaseResult. The SDK no longer runs purchases itself, so there is no native purchase to report; your controller already sees every purchase it runs.
  • onPassthrough is gone. The presentation record answers the same question with more detail: EncoreNotPresented means nothing was shown, and a presented record carries the dismissal reason and both funnels.
  • EncorePresentationResult has a new shape. Granted / Claimed / NotGranted are replaced by EncoreNotPresented(reason) and EncorePresented(outcome), where the outcome carries two independent funnels — advertiser (the Encore offer claim) and publisher (your purchase) — plus a dismissal. The record is facts only: there is no SDK-computed "unlocked" verdict, because what a claim means is a property of the variant flow that served it.
  • Encore.shared.placements.setClaimEnabled(...) moved to Encore.shared.setClaimEnabled(...), matching the native SDKs, which folded the 1.x placements manager into the facade. EncorePlacements is removed.

Added #

  • Encore.shared.outcomes — a broadcast Stream<EncorePlacementOutcome> over the native outcomes stream. Carries every show() resolution plus EncoreStrictUnlockVerified events, which can land on a later launch than the presentation that produced them and so can never be a show() return value.
  • EncoreUnlockMode on configure, selecting how claims are verified. EncoreUnlockMode.strict is what makes EncoreStrictUnlockVerified reachable.
  • EncorePurchaseRequest.basePlanId — the Google Play base plan to select, when the product exposes several. null on iOS.
  • EncoreClaimedOffer carries campaignId, advertiserName and the transactionId that joins a claim to its later verification.

Fixed #

  • EncoreUseCase now actually reaches the native SDK. In 1.x the value was dropped at the bridge — neither native plugin implemented the channel method that carried it — so EncoreUseCase.rewardUsers could never present, and headline / subheadline overrides were silently ignored. Both bridges now forward all three on every show().

1.0.39 #

1
likes
130
points
337
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter plugin wrapping the native Encore iOS and Android SDKs for monetization, offers, and entitlements. All offer UI is rendered natively via StoreKit (iOS) and Play Billing (Android).

Homepage
Repository (GitHub)
View/report issues

Topics

#monetization #in-app-purchase #subscriptions #offers

License

unknown (license)

Dependencies

flutter

More

Packages that depend on encore_flutter

Packages that implement encore_flutter