浏览代码

Add `atomically` parameter to `completeTransactions()` call

Andrea Bizzotto 8 年之前
父节点
当前提交
f29d7bd3f2
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      SwiftyStoreKit-iOS-Demo/AppDelegate.swift
  2. 1 1
      SwiftyStoreKit-macOS-Demo/AppDelegate.swift

+ 1 - 1
SwiftyStoreKit-iOS-Demo/AppDelegate.swift

@@ -55,7 +55,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
     
     func completeIAPTransactions() {
         
-        SwiftyStoreKit.completeTransactions() { products in
+        SwiftyStoreKit.completeTransactions(atomically: true) { products in
             
             for product in products {
                 

+ 1 - 1
SwiftyStoreKit-macOS-Demo/AppDelegate.swift

@@ -35,7 +35,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
     
     func completeIAPTransactions() {
         
-        SwiftyStoreKit.completeTransactions() { products in
+        SwiftyStoreKit.completeTransactions(atomically: true) { products in
             
             for product in products {