Skip to content

Commit ed3a380

Browse files
authored
Update swift-clocks conditional to match (#1561)
* Update swift-clocks conditional to match Adopting the same as pointfreeco/swift-clocks#5 * wip * wip * wip
1 parent c2e02c2 commit ed3a380

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ let package = Package(
2525
.package(url: "https://github.com/google/swift-benchmark", from: "0.1.0"),
2626
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.8.0"),
2727
.package(url: "https://github.com/pointfreeco/swift-case-paths", from: "0.10.0"),
28-
.package(url: "https://github.com/pointfreeco/swift-clocks", from: "0.1.1"),
28+
.package(url: "https://github.com/pointfreeco/swift-clocks", from: "0.1.4"),
2929
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "0.6.0"),
3030
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "0.4.1"),
3131
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "0.5.0"),

Sources/Dependencies/Dependencies/Clocks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if canImport(RoomPlan) || (!canImport(Darwin) && swift(>=5.7))
1+
#if swift(>=5.7) && (canImport(RegexBuilder) || !os(macOS) && !targetEnvironment(macCatalyst))
22
import Clocks
33

44
@available(iOS 16, macOS 13, tvOS 16, watchOS 9, *)

Tests/ComposableArchitectureTests/EffectTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ final class EffectTests: XCTestCase {
5050
.store(in: &self.cancellables)
5151
}
5252

53-
#if canImport(RoomPlan) || (!canImport(Darwin) && swift(>=5.7))
53+
#if swift(>=5.7) && (canImport(RegexBuilder) || !os(macOS) && !targetEnvironment(macCatalyst))
5454
func testConcatenate() async {
5555
if #available(iOS 16, macOS 13, tvOS 16, watchOS 9, *) {
5656
let clock = TestClock()
@@ -102,7 +102,7 @@ final class EffectTests: XCTestCase {
102102
XCTAssertEqual(values, [1])
103103
}
104104

105-
#if canImport(RoomPlan) || (!canImport(Darwin) && swift(>=5.7))
105+
#if swift(>=5.7) && (canImport(RegexBuilder) || !os(macOS) && !targetEnvironment(macCatalyst))
106106
func testMerge() async {
107107
if #available(iOS 16, macOS 13, tvOS 16, watchOS 9, *) {
108108
let clock = TestClock()

Tests/ComposableArchitectureTests/ReducerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class ReducerTests: XCTestCase {
1919
XCTAssertEqual(state, 1)
2020
}
2121

22-
#if canImport(RoomPlan) || (!canImport(Darwin) && swift(>=5.7))
22+
#if swift(>=5.7) && (canImport(RegexBuilder) || !os(macOS) && !targetEnvironment(macCatalyst))
2323
func testCombine_EffectsAreMerged() async throws {
2424
if #available(iOS 16, macOS 13, tvOS 16, watchOS 9, *) {
2525
enum Action: Equatable {

0 commit comments

Comments
 (0)