Releases: bizz84/SwiftyStoreKit
Releases · bizz84/SwiftyStoreKit
0.10.6 Add support for shouldAddStorePayment
Minor update to transactions purchase flow
0.10.4 Documentation and updates for Xcode 9
Add `forceRefresh` option to `verifyReceipt`
Remove SKProduct caching
Danger, xcpretty integration
verifyReceipt now automatically refreshes the receipt if needed
API removed: refreshReceipt
This release simplifies the receipt verification flows by removing the refreshReceipt
method from the public API.
Now clients only need to call verifyReceipt
and the receipt is refreshed internally if needed.
Addressed in #213, related issue: #42.
The documentation in the README and various methods has also been considerably improved.
Dispatch callbacks on main thread on macOS
Fix for failing receipt verification due to missing optional field
This is a critical fix for #208.
If you're using release 0.9.0, please update.
Expose SKProduct in PurchaseDetails type returned by PurchaseResult
This is a minor release which includes a fix for #185 (addressed in #206). Summary:
When a purchase succeeds, it is desirable to get access to the purchased SKProduct
in the completion block, so that it's possible to query the price
and other properties.
With this change, this is now possible:
SwiftyStoreKit.purchaseProduct("productId", atomically: true) { result in
if case .success(let purchase) = result {
// Deliver content from server, then:
if purchase.needsFinishTransaction {
SwiftyStoreKit.finishTransaction(purchase.transaction)
}
print("Purchased product with price: \(purchase.product.price)")
}
}