Release 14.2.0
React Native IAP 14.2.0 focuses on stability and smoother integration across iOS and Android.
Highlightsβ
- iOS: Idempotent, non-blocking
initConnection()
with proper failure propagation. Prevents false-positive connected states under rapid navigation. - iOS: Upgraded OpenIAP to
~> 1.1.8
for StoreKit 2 stability. - Android: Ship consumer R8 keep rules so Nitro
HybridObjects
arenβt stripped in release builds. Apps no longer need manual keeps. - CI: Use vendored Yarn binary to avoid Corepack network/503 issues.
- Examples: Stabilized Subscription/Purchase flows and improved tests.
Detailsβ
ios/HybridRnIap.swift
:initConnection()
now awaits OpenIAP initialization and returns the actual result. Errors surface through the purchase error channel withE_INIT_CONNECTION
and the hook no longer marks as connected prematurely.NitroIap.podspec
: Depends onopeniap
~> 1.1.8
.android/consumer-rules.pro
: Keep rules for Nitro IAP classes; wired viaconsumerProguardFiles
so downstream apps inherit them automatically.- CI workflows updated to call
.yarn/releases/yarn-3.6.1.cjs
directly.
Upgrade Notesβ
No breaking API changes. After upgrading:
-
Reinstall Pods for the iOS example/app
cd example/ios && pod install
-
Regenerate Nitrogen if you edited specs
yarn nitrogen
-
Android consumers can remove any app-local keep rules previously added for Nitro IAP (the library now ships consumer rules).