Skip to content

Commit 113166d

Browse files
committed
Support for iOS11
1 parent f1394f1 commit 113166d

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PackageDescription
55
let package = Package(
66
name: "reactiveswift-composable-architecture",
77
platforms: [
8-
.iOS(.v12),
8+
.iOS(.v11),
99
.macOS(.v10_14),
1010
.tvOS(.v12),
1111
.watchOS(.v5),

Sources/ComposableArchitecture/Debugging/ReducerInstrumentation.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ extension Reducer {
2121
/// - prefix: A string to print at the beginning of the formatted message for the signpost.
2222
/// - log: An `OSLog` to use for signposts.
2323
/// - Returns: A reducer that has been enhanced with instrumentation.
24-
public func signpost(
24+
@available(iOS 12.0, *)
25+
public func signpost(
2526
_ prefix: String = "",
2627
log: OSLog = OSLog(
2728
subsystem: "co.pointfree.composable-architecture",
@@ -54,6 +55,7 @@ extension Reducer {
5455
}
5556

5657
extension Effect where Error == Never {
58+
@available(iOS 12.0, *)
5759
func effectSignpost(
5860
_ prefix: String,
5961
log: OSLog,

Tests/ComposableArchitectureTests/ReducerTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ final class ReducerTests: XCTestCase {
199199
]
200200
)
201201
}
202-
202+
203+
@available(iOS 12.0, *)
203204
func testDefaultSignpost() {
204205
let reducer = Reducer<Int, Void, Void>.empty.signpost(log: .default)
205206
var n = 0
@@ -211,7 +212,8 @@ final class ReducerTests: XCTestCase {
211212
}
212213
self.wait(for: [expectation], timeout: 0.1)
213214
}
214-
215+
216+
@available(iOS 12.0, *)
215217
func testDisabledSignpost() {
216218
let reducer = Reducer<Int, Void, Void>.empty.signpost(log: .disabled)
217219
var n = 0

0 commit comments

Comments
 (0)