flutter_rustore_pay 10.1.0 copy "flutter_rustore_pay: ^10.1.0" to clipboard
flutter_rustore_pay: ^10.1.0 copied to clipboard

PlatformAndroid

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.LIGHT parameter
  • IntentInteractor.proceedIntent() - Added optional sdkTheme: SdkTheme = SdkTheme.LIGHT parameter
  • PurchaseInteractor.purchase() - Added optional sdkTheme: SdkTheme = SdkTheme.LIGHT parameter
  • PurchaseInteractor.purchaseTwoStep() - Added optional sdkTheme: SdkTheme = SdkTheme.LIGHT parameter

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:

  • SdkTheme
  • SubscriptionInfo
  • SubscriptionPeriod

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 SubscriptionPurchase model to represent subscription-type purchases.
    • Added the SubscriptionPurchaseStatus enum for tracking subscription states (active, paused, terminated, etc.).
    • The getPurchases() method can now return a list containing both ProductPurchase and SubscriptionPurchase objects.
  • FIX: Significantly improved error handling and mapping.
    • Native PlatformExceptions are now correctly mapped to specific Dart RuStoreException types (e.g., RuStoreProductPurchaseException, RuStorePurchaseCancelledException). This provides developers with richer error objects and fixes bugs where generic or incorrect exceptions were previously thrown.
    • The message field in RuStoreProductPurchaseException and RuStorePurchaseCancelledException now contains detailed error information from the native SDK.
  • FIX: Fixed a bug where the ApplicationSchemeWasNotProvided exception 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
  • purchaseOneStep method has been replaced by purchase
  • Added support for deep links

7.0.0 #

  • Initial release.