Merged PRs
What's Changed
- Fix watch build on xcode 12.5 by @fnuky in https://github.com/bizz84/SwiftyStoreKit/pull/645
- Add "SwiftyStoreKit to RevenueCat Migration Guide" to README by @bizz84 in https://github.com/bizz84/SwiftyStoreKit/pull/649
- Add link to Glassfy to README by @bizz84 in https://github.com/bizz84/SwiftyStoreKit/pull/654
- Add "is_upgraded" properties for ReceiptItem by @ManyLattice in https://github.com/bizz84/SwiftyStoreKit/pull/656
- Add app that uses SwiftyStoreKit by @jamestapping in https://github.com/bizz84/SwiftyStoreKit/pull/650
- Communicate deferred transactions to the app by @azouts in https://github.com/bizz84/SwiftyStoreKit/pull/652
- Added Written Tutorial section / Added Tutorial by @jamestapping in https://github.com/bizz84/SwiftyStoreKit/pull/651
New Contributors
- @fnuky made their first contribution in https://github.com/bizz84/SwiftyStoreKit/pull/645
- @ManyLattice made their first contribution in https://github.com/bizz84/SwiftyStoreKit/pull/656
- @jamestapping made their first contribution in https://github.com/bizz84/SwiftyStoreKit/pull/650
- @azouts made their first contribution in https://github.com/bizz84/SwiftyStoreKit/pull/652
Full Changelog: https://github.com/bizz84/SwiftyStoreKit/compare/0.16.3...0.16.4
watchOS & SPM fixes
Fixed issues when compiling for watchOS, with SPM, Xcode 12, and / or Swift 5.3+.
watchOS, discounts, sandbox testing, and more
This update includes some changes and improvements that will (hopefully) fix some common issues as well as expand support for long-awaited features.
New Features
- watchOS support. Apple has introduced in-app purchases on the Apple Watch starting with watchOS 6.2. Now you can use SwiftyStoreKit to take advantage of this additional platform.
- Discount support. Now your app can offer in-app purchase discounts to users through SwiftyStoreKit (#458).
- Cancellable requests. Attempt to cancel requests sent with SwiftyStoreKit.
Improvements & Bug Fixes
- Sandbox purchasing process should be improved. New checks exist to help you identify when a request is being sent in the sandbox and to isolate sandbox-specific errors.
- Added
Purchased
protocol to create common conformance forPurchase
,PurchaseDetails
, andReceiptItem
. - Fixed callback issues when restoring items.
- Added a new API to retrieve all product identifiers,
getDistinctPurchaseIds
. - Extended support for your own receipt verification process.
ReceiptItem
now conforms toCodable
.- Additional extensions on existing
StoreKit
classes forlocalizedSubscriptionPeriod
,localizedPrice
, andlocalizedDiscountPrice
.
macOS Catalyst Support
- The project should now correctly compile for macOS Catalyst
Add missing `else` condition in `SwiftyStoreKit.purchaseProduct`
- Add missing
else
condition inSwiftyStoreKit.purchaseProduct
(#426)