aptoide_iap_android 0.1.3 copy "aptoide_iap_android: ^0.1.3" to clipboard
aptoide_iap_android: ^0.1.3 copied to clipboard

Flutter plugin for the Aptoide Android Billing SDK. Supports in-app purchases, subscriptions, and free trials via the Aptoide Connect platform.

0.1.3 #

Bug fix #

  • UnfetchedProduct: the SDK field is statusCode (not responseCode) — fixes "Unresolved reference 'responseCode'" compile error at line 216
  • UnfetchedProduct: added productType field (present in the SDK class)
  • Kept responseCode as a Dart getter alias pointing to statusCode for API consistency

0.1.2 #

Bug fixes (Kotlin native layer — verified against SDK 1.3.0 AAR) #

  • Imports corrected: AptoideBillingClientStateListener and ConsumeResponseListener are in com.aptoide.sdk.billing.listeners, not the root package
  • Nested annotations: BillingResponseCode, ProductType and FeatureType are nested @interface annotations inside AptoideBillingClient — they are no longer imported as separate classes (fixes all "Unresolved reference" build errors)
  • isFeatureSupported: the SDK method signature is isFeatureSupported(int) not isFeatureSupported(FeatureType) — corrected
  • ProductDetailsResponseListener / PurchasesResponseListener: are Kotlin fun interface types — constructor lambda form now used correctly
  • SubscriptionOfferDetails: removed non-existent offerId field (causes "Unresolved reference" compile error)
  • PricingPhase: removed non-existent billingCycleCount and recurrenceMode fields
  • isReady must be called as a method isReady(), not a property

Improvements #

  • OneTimePurchaseOfferDetails, PricingPhase: exposed Aptoide-specific appcFormattedPrice, appcPriceAmountMicros, fiatFormattedPrice, fiatPriceAmountMicros, fiatPriceCurrencyCode fields
  • SubscriptionOfferDetails: added optional trialDetails (TrialDetails with period and periodEndDate)
  • Purchase: added isAutoRenewing field (useful for subscription management)
  • billingResultToMap: handles nullable debugMessage safely

0.1.1 #

Bug fixes #

  • Kotlin imports: corrected package from com.aptoide.billingcom.aptoide.sdk.billing (build would fail otherwise)
  • isFeatureSupported: was returning the full BillingResult object instead of the responseCode int (would crash at runtime)
  • PurchaseState: corrected constants to match Aptoide SDK values (0=purchased, 1=cancelled) instead of the Google Play Billing Library mapping
  • FeatureType: added missing subscriptions enum value
  • BillingResponseCode: added featureNotSupported = -2
  • Renamed Purchase.isPendingPurchase.isCancelled to reflect actual Aptoide state semantics

0.1.0 #

Initial release of the Aptoide Android Billing SDK Flutter plugin.

Features #

  • Step 1 — Connection: initialize(publicKey:), endConnection(), isReady
  • Step 2 — Query products: queryProductDetails(productIds:, productType:) for both ProductType.inapp and ProductType.subs
  • Step 3 — Purchase flow: launchBillingFlow(productId:, productType:, …) with support for obfuscatedAccountId, developerPayload, and freeTrial
  • Step 4 — Process purchases: queryPurchases(productType:), consumePurchase(purchaseToken:)
  • Real-time streams: purchasesUpdatedStream and billingStateStream
  • Feature detection: isFeatureSupported(FeatureType) for freeTrials and obfuscatedAccountId
  • Full Dart model classes: BillingResult, ProductDetails, Purchase, QueryProductDetailsResult, QueryPurchasesResult, ConsumeResult, PurchaseUpdateEvent, BillingStateEvent
0
likes
0
points
200
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for the Aptoide Android Billing SDK. Supports in-app purchases, subscriptions, and free trials via the Aptoide Connect platform.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on aptoide_iap_android

Packages that implement aptoide_iap_android