flutter_rustore_pay 10.1.0
flutter_rustore_pay: ^10.1.0 copied to clipboard
Flutter RuStore Pay SDK
10.1.0 #
Added #
Theme Support
- SdkTheme - New enum class for managing SDK themes with LIGHT and DARK variants
- ApplicationInteractor.purchase() - Added optional
sdkTheme: SdkTheme = SdkTheme.LIGHTparameter - IntentInteractor.proceedIntent() - Added optional
sdkTheme: SdkTheme = SdkTheme.LIGHTparameter - PurchaseInteractor.purchase() - Added optional
sdkTheme: SdkTheme = SdkTheme.LIGHTparameter - PurchaseInteractor.purchaseTwoStep() - Added optional
sdkTheme: SdkTheme = SdkTheme.LIGHTparameter
Enhanced Subscription Support
- SubscriptionInfo - New class for subscription information
- SubscriptionPeriod - New class for subscription period management
- Product.subscriptionInfo - New field containing subscription metadata in the Product model
Anonymous User Authorization
- Automatic authorization screen display - SDK now automatically shows the authorization screen when an anonymous user attempts to purchase a subscription
Changed #
- No breaking changes to existing functionality
Removed #
- Removed Coil image loading library dependency; implemented custom image loading solution
Deprecated #
- No deprecated items in this release
Public API Summary #
New Public Classes:
SdkThemeSubscriptionInfoSubscriptionPeriod
Modified Public Methods:
IntentInteractor.proceedIntent(sdkTheme)PurchaseInteractor.purchase(sdkTheme)PurchaseInteractor.purchaseTwoStep(sdkTheme)
Migration Guide: No migration required. All changes are backward compatible with default parameter values.
10.0.0 #
- BREAKING CHANGE: Updated RuStore Pay SDK to 10.0.0.
- FEATURE: Added support for subscription purchases.
- Introduced the
SubscriptionPurchasemodel to represent subscription-type purchases. - Added the
SubscriptionPurchaseStatusenum for tracking subscription states (active,paused,terminated, etc.). - The
getPurchases()method can now return a list containing bothProductPurchaseandSubscriptionPurchaseobjects.
- Introduced the
- FIX: Significantly improved error handling and mapping.
- Native
PlatformExceptions are now correctly mapped to specific DartRuStoreExceptiontypes (e.g.,RuStoreProductPurchaseException,RuStorePurchaseCancelledException). This provides developers with richer error objects and fixes bugs where generic or incorrect exceptions were previously thrown. - The
messagefield inRuStoreProductPurchaseExceptionandRuStorePurchaseCancelledExceptionnow contains detailed error information from the native SDK.
- Native
- FIX: Fixed a bug where the
ApplicationSchemeWasNotProvidedexception was not handled correctly.
9.0.2 #
- Updated RuStore Pay SDK to 9.0.2
9.0.1 #
- Updated RuStore Pay SDK to 9.0.1
- Added a method
getUserAuthorizationStatus - Added new error types
8.0.0 #
- Updated RuStore Pay SDK to 8.0.0
purchaseOneStepmethod has been replaced bypurchase- Added support for deep links
7.0.0 #
- Initial release.