Skip to content

Commit 7c9dba7

Browse files
refactor 1.1 to go back until ios 14.0 and similar
1 parent aa7a6c5 commit 7c9dba7

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import CompilerPluginSupport
66
let AsyncAlgorithms_v1_0 = "AvailabilityMacro=AsyncAlgorithms 1.0:macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0"
77
#if compiler(>=6.0) && swift(>=6.0) // 5.10 doesnt support visionOS availability
88
let AsyncAlgorithms_v1_1 =
9-
"AvailabilityMacro=AsyncAlgorithms 1.1:macOS 13.0, iOS 16.0, tvOS 16.0, watchOS 9.0, visionOS 1.0"
9+
"AvailabilityMacro=AsyncAlgorithms 1.1:macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, visionOS 1.0"
1010
let AsyncAlgorithms_v1_2 =
1111
"AvailabilityMacro=AsyncAlgorithms 1.2:macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0"
1212
#else
13-
let AsyncAlgorithms_v1_1 = "AvailabilityMacro=AsyncAlgorithms 1.1:macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0"
13+
let AsyncAlgorithms_v1_1 = "AvailabilityMacro=AsyncAlgorithms 1.1:macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0"
1414
let AsyncAlgorithms_v1_2 =
1515
"AvailabilityMacro=AsyncAlgorithms 1.2:macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0"
1616
#endif

Tests/AsyncAlgorithmsTests/TestShare.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,6 @@ final class TestShare: XCTestCase {
573573
XCTAssertEqual(results2, []) // Should be empty since source is exhausted
574574
}
575575

576-
@available(AsyncAlgorithms 1.1, *)
577576
func test_share_rethrows_failure_type_on_backported() async {
578577
let shared = AsyncThrowingStream<Void, Error> {
579578
$0.finish(throwing: TestError.failure)
@@ -589,8 +588,6 @@ final class TestShare: XCTestCase {
589588

590589
func test_share_rethrows_failure_type_without_falling_back_to_any_error() async {
591590
if #available(AsyncAlgorithms 1.2, *) {
592-
593-
594591
// Ensure - at compile time - that error is effectively a TestError
595592
let shared: some AsyncSequence<Void, TestError> = FailingSequence(TestError.failure).share()
596593
do {

0 commit comments

Comments
 (0)