From 347d2e660706a6c8a216cbbab7578e010f488ca0 Mon Sep 17 00:00:00 2001 From: NachoSoto Date: Mon, 29 Aug 2022 17:13:40 -0700 Subject: [PATCH] Fixed pre-iOS 16 build --- Sources/Purchasing/StoreKitAbstractions/SK1Storefront.swift | 6 ++++++ Sources/Purchasing/StoreKitAbstractions/SK2Storefront.swift | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/Sources/Purchasing/StoreKitAbstractions/SK1Storefront.swift b/Sources/Purchasing/StoreKitAbstractions/SK1Storefront.swift index 40ec0b1000..944519641d 100644 --- a/Sources/Purchasing/StoreKitAbstractions/SK1Storefront.swift +++ b/Sources/Purchasing/StoreKitAbstractions/SK1Storefront.swift @@ -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 diff --git a/Sources/Purchasing/StoreKitAbstractions/SK2Storefront.swift b/Sources/Purchasing/StoreKitAbstractions/SK2Storefront.swift index 278b1cf127..11b3a5583d 100644 --- a/Sources/Purchasing/StoreKitAbstractions/SK2Storefront.swift +++ b/Sources/Purchasing/StoreKitAbstractions/SK2Storefront.swift @@ -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