Skip to content

flutter_inapp_purchase 9.0.2

Choose a tag to compare

@github-actions github-actions released this 14 Apr 13:02

flutter_inapp_purchase 9.0.2

Patch release with a direct Dart enum fix plus the OpenIAP Google 1.3.31 native fixes.

What's Changed

Direct fix (Dart)

  • AndroidReplacementMode.deferred.value now returns 6 (was 4). The value was not a valid BillingFlowParams.SubscriptionUpdateParams.ReplacementMode constant, so the int passed through to setSubscriptionReplacementMode(int) was being silently ignored by Play and the caller's requested replacement mode was never applied. chargeFullPrice stays at 5. Full enum coverage added to enums_unit_test.dart. (hyodotdev/openiap#92)

Via openiap-google 1.3.31 (native Android)

  • Purchase flow double-resume crash fixedIllegalStateException: Already resumed could hit on rapid double-tap requestPurchase. Google-side now uses AtomicReference with compareAndSet; a racing second call fails fast with OpenIapError.DeveloperError instead of stranding the first continuation. (hyodotdev/openiap#94)
  • Kotlin-side replacement-mode mapping sourced from native Billing constants — No more hand-typed 0..6 integers; the mapping tracks the Billing Library directly.

Installation

# pubspec.yaml
dependencies:
  flutter_inapp_purchase: ^9.0.2
flutter pub get

Documentation

Links