This version does not introduce any user-facing changes.
- Cache products on iOS when calling
getProductsAsync
, so thatpurchaseItemAsync
no longer needs to make a second request to StoreKit. This matches the Android implementation. (#13961 by @cruzach) - Extract
getPurchaseHistoryAsync
embedded parameter type toIAPPurchaseHistoryOptions
type. (#14217 by @Simek) - Use correct enum types instead of more general
number
in few type definitions. (#14217 by @Simek)
purchaseItemAsync
no longer accepts the old SKU as the second (optional) argument. Instead, this method now accepts thepurchaseToken
of the purchase you are replacing as the second argument. You can get this value viagetPurchaseHistoryAsync
. This change only affects Android. (#13884 by @cruzach)getPurchaseHistoryAsync
no longer accepts a boolean parameter. Instead, it accepts an object containing the keyuseGooglePlayCache
.useGooglePlayCache
functions similarly to the the previousrefresh
parameter, except it is clearer in naming. If you hadrefresh
as false, you should passuseGooglePlayCache: true
. Ifrefresh
was true, you should passuseGooglePlayCache: false
. Please see the docs for more information. (#13942 by @cruzach)
- Made the arguments that were labeled as 'optional' on iOS for
getPurchaseHistoryAsync
andfinishTransactionAsync
actually optional. (#13904 by @cruzach)
- Enable kotlin in all modules. (#12716 by @wschurman)
- Improved
IAPQueryResponse
types. #13104 by @hehex9
- Remove peerDependencies and unimodulePeerDependencies from Expo modules. (#11980 by @brentvatne)
- Map more iOS error codes to JS/TS error codes (#11773) by @danmaas
- Add defensive null checks so that bugs in the Android payments API do not cause crashes (#11773) by @danmaas
- Updated Android build configuration to target Android 11 (added support for Android SDK 30). (#11647 by @bbarthec)
errorCodeNativeToJS
now returns 0 by default. This fixes a build error that would occur on Xcode 12. (#10224 by @nabettu)
- Calling
connectAsync
no longer queries the purchase history. This way, on iOS, the user is not prompted to log into their Apple ID untilgetPurchaseHistoryAsync
is called. Thanks to @sergeichestakov for implementing this in #8577.
This version does not introduce any user-facing changes.
This version does not introduce any user-facing changes.