diff --git a/Package.resolved b/Package.resolved index 896cf0e..486a484 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/EricRabil/Swexy", "state": { "branch": null, - "revision": "a9d808e3f53c57ddab99c1d1643778d3b6a36187", - "version": "1.0.1" + "revision": "e8f656e5f1d1cad30f99b259d4d50e1e05c8a9f8", + "version": "1.0.4" } } ] diff --git a/Package.swift b/Package.swift index 5e74c0f..9586f23 100644 --- a/Package.swift +++ b/Package.swift @@ -14,7 +14,7 @@ let package = Package( dependencies: [ // Dependencies declare other packages that this package depends on. // .package(url: /* package url */, from: "1.0.0"), - .package(url: "https://github.com/EricRabil/Swexy", .upToNextMajor(from: "1.0.1")) + .package(url: "https://github.com/EricRabil/Swexy", .upToNextMajor(from: "1.0.4")) ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. diff --git a/Sources/Pwomise/Extensions/SubjectStream+OncePromise.swift b/Sources/Pwomise/Extensions/SubjectStream+OncePromise.swift index 33c6407..22c78c3 100644 --- a/Sources/Pwomise/Extensions/SubjectStream+OncePromise.swift +++ b/Sources/Pwomise/Extensions/SubjectStream+OncePromise.swift @@ -5,10 +5,12 @@ // Created by Eric Rabil on 8/24/21. // +#if canImport(Combine) + import Foundation import Swexy -@available(macOS 10.15, *) +@available(macOS 10.15, iOS 13.0, *) public extension SubjectStream { @discardableResult func oncePromise(where valid: @escaping (Element) -> Bool) -> Promise { @@ -17,3 +19,5 @@ public extension SubjectStream { } } } + +#endif