From fa4e1a6911c3887640864881e2e6a528f41f71e1 Mon Sep 17 00:00:00 2001 From: Eric Rabil Date: Mon, 25 Oct 2021 20:03:02 -0400 Subject: [PATCH] Just target everything with Combine, I can't take it anymore --- Package.swift | 3 +++ Sources/Swexy/Combine/SubjectStream.swift | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Package.swift b/Package.swift index d9b5d11..daa1b4b 100644 --- a/Package.swift +++ b/Package.swift @@ -5,6 +5,9 @@ import PackageDescription let package = Package( name: "Swexy", + platforms: [ + .iOS(.v13), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v6) + ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( diff --git a/Sources/Swexy/Combine/SubjectStream.swift b/Sources/Swexy/Combine/SubjectStream.swift index 64ece9b..8f8fe82 100644 --- a/Sources/Swexy/Combine/SubjectStream.swift +++ b/Sources/Swexy/Combine/SubjectStream.swift @@ -5,8 +5,6 @@ // Created by Eric Rabil on 8/24/21. // -#if canImport(Combine) - import Foundation import Combine @@ -14,7 +12,6 @@ import Combine @_silgen_name("dispatch_get_current_queue") func dispatch_get_current_queue() -> DispatchQueue -@available(macOS 10.15, iOS 13.0, *) public class SubjectStream { private let subject = PassthroughSubject() private let publisher: Publishers.Share> @@ -86,4 +83,3 @@ public extension SubjectStream { return unsubscribe } } -#endif