-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Add support for StoreKit 2 full flow #3529
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3529 +/- ##
==========================================
+ Coverage 85.88% 85.96% +0.08%
==========================================
Files 242 240 -2
Lines 17617 17490 -127
==========================================
- Hits 15131 15036 -95
+ Misses 2486 2454 -32 ☔ View full report in Codecov by Sentry. |
149e108
to
90fa90e
Compare
5c9d018
to
7d07642
Compare
Notes for this PR:
|
ce434bc
to
7ce72e8
Compare
911138a
to
f77a9ef
Compare
…n of StoreKit to use (#3487) This PR introduces a new configuration option to select the StoreKit version to use. It supersedes the deprecated `.with(usesStoreKit2IfAvailable: true)` and the internal `usesStoreKit2JWS` configuration options. Uses JWS tokens instead of SK1 receipts when in StoreKit 2 mode where applicable. Example usage: ```swift Purchases.configure( with: .builder(withAPIKey: apiKey) .with(storeKitVersion: .storeKit2) .build() ```
We already set this for SK1 purchases: https://github.com/RevenueCat/purchases-ios/blob/daa0e1f3d0b8eaf653d81ef99396caa2a5e95506/Sources/Purchasing/Purchases/PurchasesOrchestrator.swift#L385 However, as explained in the documentation, if this value is not a UUID, it basically gets ignored: https://developer.apple.com/documentation/storekit/skmutablepayment/1506088-applicationusername This PR makes sure we do the equivalent in SK2 purchases.
f77a9ef
to
5dca3ae
Compare
Default to StoreKit 1 when enabling observer mode.
Closing as commits from this PR have been included in #3652 |
Umbrella branch + PR to track work on adding support for full flow StoreKit 2 mode.
Changes:
Configuration.with(storeKitVersion:)
to select the version of StoreKit to use #3487TODO:
breaking