flutter_inapp_purchase 9.0.2
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.valuenow returns6(was4). The value was not a validBillingFlowParams.SubscriptionUpdateParams.ReplacementModeconstant, so the int passed through tosetSubscriptionReplacementMode(int)was being silently ignored by Play and the caller's requested replacement mode was never applied.chargeFullPricestays at5. Full enum coverage added toenums_unit_test.dart. (hyodotdev/openiap#92)
Via openiap-google 1.3.31 (native Android)
- Purchase flow double-resume crash fixed —
IllegalStateException: Already resumedcould hit on rapid double-taprequestPurchase. Google-side now usesAtomicReferencewithcompareAndSet; a racing second call fails fast withOpenIapError.DeveloperErrorinstead of stranding the first continuation. (hyodotdev/openiap#94) - Kotlin-side replacement-mode mapping sourced from native Billing constants — No more hand-typed
0..6integers; the mapping tracks the Billing Library directly.
Installation
# pubspec.yaml
dependencies:
flutter_inapp_purchase: ^9.0.2flutter pub get