-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This beta introduces a new configuration option to enable full StoreKit 2 flow on the SDK and the RevenueCat backend. We have been testing StoreKit 2 support in parallel to StoreKit 1 in our backend for a while and we believe it is ready for widespread use. If your app is currently using StoreKit 1, it is safe to update to StoreKit 2 and it's even possible to switch back to StoreKit 1 if needed. Switching to StoreKit 2 will not prevent purchases made with StoreKit 1 from being processed. In order to enable StoreKit 2, add `.with(storeKitVersion: .storeKit2)` to your RevenueCat configuration code: ``` Purchases.configure(with: .builder(withAPIKey: apiKey) .with(storeKitVersion: .storeKit2) .build() ``` If you were previously using the deprecated configuration option `.with(usesStoreKit2IfAvailable: true)`, we recommend you remove it and switch to the new supported method.⚠️ ⚠️ Important⚠️ ⚠️ In order to validate StoreKit 2 purchases, make sure you have an In-App Purchase Key configured in your app. Please see https://rev.cat/in-app-purchase-key-configuration for more info. 🚧🚧 Limitations 🚧🚧 - Observer Mode is not currently supported when using StoreKit 2. - The `originalApplicationVersion` and `originalPurchaseDate` properties in `CustomerInfo` are not supported in this first beta. Please do not update if your implementation relies on them being present.
- Loading branch information
1 parent
68265ba
commit 7d07642
Showing
12 changed files
with
225 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.32.0-SNAPSHOT | ||
4.32.0-beta.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,28 @@ | ||
### RevenueCatUI | ||
* `Paywalls`: remove unscrollable spacing in Template 5 (#3562) via NachoSoto (@NachoSoto) | ||
* `Paywalls`: improve template 5 checkmark icon (#3559) via NachoSoto (@NachoSoto) | ||
### Bugfixes | ||
* Improve sandbox detector for macOS apps (#3549) via Mark Villacampa (@MarkVillacampa) | ||
### Other Changes | ||
* `Paywalls`: new `PaywallViewControllerDelegate.paywallViewController(_:didChangeSizeTo:)` (#3563) via Cesar de la Vega (@vegaro) | ||
* `Tests`: running tests on `macOS` (#3533) via NachoSoto (@NachoSoto) | ||
* `Integration Tests`: split into separate jobs (#3560) via NachoSoto (@NachoSoto) | ||
### StoreKit 2 Beta | ||
|
||
This beta introduces a new configuration option to enable full StoreKit 2 flow on the SDK and the RevenueCat backend. | ||
|
||
We have been testing StoreKit 2 support in parallel to StoreKit 1 in our backend for a while and we believe it is ready for widespread use. | ||
|
||
If your app is currently using StoreKit 1, it is safe to update to StoreKit 2 and it's even possible to switch back to StoreKit 1 if needed. Switching to StoreKit 2 will not prevent purchases made with StoreKit 1 from being processed. | ||
|
||
In order to enable StoreKit 2, add `.with(storeKitVersion: .storeKit2)` to your RevenueCat configuration code: | ||
|
||
``` | ||
Purchases.configure(with: .builder(withAPIKey: apiKey) | ||
.with(storeKitVersion: .storeKit2) | ||
.build() | ||
``` | ||
|
||
If you were previously using the deprecated configuration option `.with(usesStoreKit2IfAvailable: true)`, we recommend you remove it and switch to the new supported method. | ||
|
||
⚠️ ⚠️ Important ⚠️ ⚠️ | ||
|
||
In order to validate StoreKit 2 purchases, make sure you have an In-App Purchase Key configured in your app. | ||
|
||
Please see https://rev.cat/in-app-purchase-key-configuration for more info. | ||
|
||
🚧🚧 Limitations 🚧🚧 | ||
|
||
- Observer Mode is not currently supported when using StoreKit 2. | ||
- The `originalApplicationVersion` and `originalPurchaseDate` properties in `CustomerInfo` are not supported in this first beta. Please do not update if your implementation relies on them being present. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ | |
"method" : "POST", | ||
"url" : "https:\/\/api.revenuecat.com\/v1\/receipts" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters