Skip to content

Commit

Permalink
Remove Publisher and SendableValue from Linux and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Aug 7, 2024
1 parent 95726e0 commit d773c9b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ let package = Package(
)
],
dependencies: [
// Used for GitHub CI
.package(url: "https://github.com/swiftlang/swift-testing.git", exact: "0.8.0")
],
targets: [
Expand All @@ -33,6 +34,7 @@ let package = Package(
name: "LaterTests",
dependencies: [
"Later",
// Used for GitHub CI
.product(name: "Testing", package: "swift-testing")
]
)
Expand Down
2 changes: 2 additions & 0 deletions Sources/Later/SendableValue/SendableValue.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !os(Linux) && !os(Windows)
import os

@available(macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, *)
Expand Down Expand Up @@ -32,3 +33,4 @@ public struct SendableValue<Value: Sendable>: Sendable {
}
}
}
#endif
2 changes: 2 additions & 0 deletions Tests/LaterTests/Publisher/PublisherTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !os(Linux) && !os(Windows)
import Testing
@testable import Later

Expand Down Expand Up @@ -322,3 +323,4 @@ struct PublisherTests {
#expect(values == ["Initial value", nil, "Edge case value", nil])
}
}
#endif
2 changes: 2 additions & 0 deletions Tests/LaterTests/SendableValue/SendableValueTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if !os(Linux) && !os(Windows)
import Testing
@testable import Later

Expand Down Expand Up @@ -167,3 +168,4 @@ struct SendableValueTests {
#expect(value == 0)
}
}
#endif

0 comments on commit d773c9b

Please sign in to comment.