Skip to content

Commit da96423

Browse files
committed
Add compile time guards for Linux for testTextState.
Fix Todos app reducer caused by merge issues. Drop support for Xcode 11.7
1 parent e87590d commit da96423

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
strategy:
1515
matrix:
1616
xcode:
17-
- 11.7
1817
- 12.4
1918
steps:
2019
- uses: actions/checkout@v2

Examples/Todos/Todos/Todos.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ struct AppEnvironment {
3939
}
4040

4141
let appReducer = Reducer<AppState, AppAction, AppEnvironment>.combine(
42+
todoReducer.forEach(
43+
state: \.todos,
44+
action: /AppAction.todo(id:action:),
45+
environment: { _ in TodoEnvironment() }
46+
),
4247
Reducer { state, action, environment in
4348
switch action {
4449
case .addTodoButtonTapped:

Tests/ComposableArchitectureTests/DebugTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ final class DebugTests: XCTestCase {
344344
)
345345
}
346346

347+
#if canImport(SwiftUI)
348+
@available(iOS 13, macOS 10.15, macCatalyst 13, tvOS 13, watchOS 6, *)
347349
func testTextState() {
348350
XCTAssertEqual(
349351
debugOutput(
@@ -410,6 +412,7 @@ final class DebugTests: XCTestCase {
410412
"""
411413
)
412414
}
415+
#endif
413416

414417
func testEffectOutput() {
415418
// XCTAssertEqual(

0 commit comments

Comments
 (0)