Skip to content

Commit

Permalink
Fixed pre-iOS 16 build
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Aug 31, 2022
1 parent b03899a commit 347d2e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/Purchasing/StoreKitAbstractions/SK1Storefront.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ internal struct SK1Storefront: StorefrontType {
let countryCode: String

}

#if swift(<5.7)
// `SKStorefront` isn't `Sendable` until iOS 16.0 / Swift 5.7
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.2, macCatalyst 13.1, *)
extension SK1Storefront: @unchecked Sendable {}
#endif
6 changes: 6 additions & 0 deletions Sources/Purchasing/StoreKitAbstractions/SK2Storefront.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ internal struct SK2Storefront: StorefrontType {
let countryCode: String

}

#if swift(<5.7)
// `SKStorefront` isn't `Sendable` until iOS 16.0 / Swift 5.7
@available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *)
extension SK2Storefront: @unchecked Sendable {}
#endif

0 comments on commit 347d2e6

Please sign in to comment.