Skip to content

Commit

Permalink
Merge pull request #381 from JonathanDowning/master
Browse files Browse the repository at this point in the history
Fix macOS compile error
  • Loading branch information
bizz84 authored Jul 16, 2018
2 parents 735c665 + f6b923f commit cad12db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SwiftyStoreKit/PaymentQueueController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,10 @@ class PaymentQueueController: NSObject, SKPaymentTransactionObserver {
updatedDownloadsHandler?(downloads)
}

#if os(iOS)
func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment: SKPayment, for product: SKProduct) -> Bool {

return shouldAddStorePaymentHandler?(payment, product) ?? false
}
#endif
}

0 comments on commit cad12db

Please sign in to comment.