As of iOS native SDK 5.0.0, developers must specify the StoreKit version they're using when setting PurchasesAreCompletedBy. This PR adjusts the typescript APIs to:
Remove the existing observerMode: bool parameter
Change purchasesAreCompletedBy to be a new PURCHASES_ARE_COMPLETED_BY combined type, which can be either PURCHASES_ARE_COMPLETED_BY_TYPE.REVENUECAT or a new type, PURCHASES_ARE_COMPLETED_BY_MY_APP, which requires developers specify their StoreKit version.
Android-Only Apps with PURCHASES_ARE_COMPLETED_BY == MY_APP
Android-only apps that want to complete their own purchases can specify any StoreKit version as that parameter is ignored by the Android SDK. This fact has been detailed in PURCHASES_ARE_COMPLETED_BY_MY_APP's docstring.
Acknowledgements
Huge thanks to @vegaro for coming up with the idea and prototyping it!
As of iOS native SDK 5.0.0, developers must specify the StoreKit version they're using when setting
PurchasesAreCompletedBy
. This PR adjusts the typescript APIs to:observerMode: bool
parameterpurchasesAreCompletedBy
to be a newPURCHASES_ARE_COMPLETED_BY
combined type, which can be eitherPURCHASES_ARE_COMPLETED_BY_TYPE.REVENUECAT
or a new type,PURCHASES_ARE_COMPLETED_BY_MY_APP
, which requires developers specify their StoreKit version.Code Samples
Setting
purchasesAreCompletedBy
toREVENUECAT
:Settings
purchasesAreCompletedBy
toMY_APP
:Android-Only Apps with
PURCHASES_ARE_COMPLETED_BY
==MY_APP
Android-only apps that want to complete their own purchases can specify any StoreKit version as that parameter is ignored by the Android SDK. This fact has been detailed in
PURCHASES_ARE_COMPLETED_BY_MY_APP
's docstring.Acknowledgements
Huge thanks to @vegaro for coming up with the idea and prototyping it!