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

PlatformAndroid

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

0.1.5 #

Change #

  • BillingResponseCode: added appNotFound = 404 — HTTP 404 propagated by the Aptoide backend when the app or product is not found on Aptoide Connect (wrong public key, app not registered, or product IDs not created in the console)

0.1.4 #

Change #

  • Pin Aptoide Android Billing SDK dependency to com.aptoide:android-aptoide-billing:1.3.0 (was 1.+) for reproducible builds

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
160
points
200
downloads

Documentation

API reference

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

MIT (license)

Dependencies

flutter

More

Packages that depend on aptoide_iap_android

Packages that implement aptoide_iap_android