v2.0.0
react-native-iaptic@2.0.0
Breaking peer-dependency bump: @iaptic/react-native-iap from ^12.16.6 to ^13.0.0.
Google Play Billing Library V9
@iaptic/react-native-iap@13.0.0 upgrades Google Play Billing Library from V7 to V9. This is a breaking change because GPBL V9 removes queryPurchaseHistoryAsync and changes several API signatures:
getPurchaseHistoryremoved — GPBL V9 droppedqueryPurchaseHistoryAsync. UsegetAvailablePurchasesinstead. ThepurchaseHistorystate andgetPurchaseHistoryhook helper are also removed fromuseIAP.enablePendingPurchases()now requiresPendingPurchasesParams— explicitly enables one-time products and prepaid plans. OmittingenableOneTimeProducts()silently breaks pending purchase flows in cash-payment markets.queryProductDetailsAsynccallback changed — the second parameter is nowQueryProductDetailsResult(wrappingproductDetailsList+unfetchedProductIds) instead of a plainList<ProductDetails>. Unfetched product IDs are logged as warnings.- Play Store blocked detection — GPBL V9 reclassified "Play Store is blocked" errors from
ERRORtoBILLING_UNAVAILABLE. A newE_STORE_BLOCKEDerror code (IapticErrorCode.STORE_BLOCKED) is now emitted, mapping toPurchaseError.E_STORE_BLOCKEDin the JS layer. billing-ktx→billing— the Kotlin extensions artifact was merged into the mainbillingartifact in V8+.enableAutoServiceReconnection()added to theBillingClientbuilder.
Locale Updates
All 9 locales (EN, EN_UK, EN_AU, ES, FR, DE, JA, ZH, PT) now include:
PurchaseError_E_STORE_BLOCKEDIapticError_6777033
Upgrade Note
Consumers who need GPBL V7 can stay on @iaptic/react-native-iap@12.x / react-native-iaptic@1.x.