Skip to content

Releases: bizz84/SwiftyStoreKit

0.10.6 Add support for shouldAddStorePayment

21 Aug 09:43
Compare
Choose a tag to compare
  • Add support for the new SKPaymentTransactionObserver.shouldAddStorePayment method in iOS 11 (#257, related issue: #240)
  • Update swiftlint to version 0.21.0 (#258)

Minor update to transactions purchase flow

03 Aug 12:06
Compare
Choose a tag to compare
  • Filter out all transactions with state == .purchasing early in purchase flows (related to #169, #188, #179)
  • Sample app: print localized description when a purchase fails with .unknown error

0.10.4 Documentation and updates for Xcode 9

18 Jul 13:42
Compare
Choose a tag to compare
  • Update to Xcode 9 recommended project settings (#247)
  • Update build script iOS version to 10.3.1 (#245)
  • Update notes about Xcode 9, Swift 4 support to README

Add `forceRefresh` option to `verifyReceipt`

03 Jun 17:53
Compare
Choose a tag to compare
  • Add forceRefresh option to verifyReceipt (#224, fix for #223)

Remove SKProduct caching

29 May 17:06
Compare
Choose a tag to compare
  • Remove SKProduct caching (#222, related issue: #212)
  • Adds new purchase product method based on SKProduct

Danger, xcpretty integration

18 May 17:40
Compare
Choose a tag to compare
  • Adds Danger for better Pull Request etiquette (#215).
  • Adds xcpretty to improve build logs (#217)
  • Update SwiftLint to 0.18.1 (#218)

verifyReceipt now automatically refreshes the receipt if needed

18 May 11:53
Compare
Choose a tag to compare

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

18 May 11:20
Compare
Choose a tag to compare

This is a minor release to ensure callbacks are dispatched on the main thread on macOS.

PR #214, fix for #211.

Fix for failing receipt verification due to missing optional field

15 May 06:57
Compare
Choose a tag to compare

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

12 May 08:32
Compare
Choose a tag to compare

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)")
    }
}