@@ -6,8 +6,12 @@ import CompilerPluginSupport
6
6
// Availability Macros
7
7
8
8
let availabilityMacros : [ SwiftSetting ] = [
9
- . enableExperimentalFeature( " AvailabilityMacro=AsyncAlgorithms 1.0:macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0 " ) ,
10
- . enableExperimentalFeature( " AvailabilityMacro=AsyncAlgorithms 1.1:macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0 " ) ,
9
+ . enableExperimentalFeature(
10
+ " AvailabilityMacro=AsyncAlgorithms 1.0:macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0 "
11
+ ) ,
12
+ . enableExperimentalFeature(
13
+ " AvailabilityMacro=AsyncAlgorithms 1.1:macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0 "
14
+ ) ,
11
15
]
12
16
13
17
let package = Package (
@@ -43,7 +47,33 @@ let package = Package(
43
47
) ,
44
48
. testTarget(
45
49
name: " AsyncAlgorithmsTests " ,
46
- dependencies: [ " AsyncAlgorithms " , " AsyncSequenceValidation " , " AsyncAlgorithms_XCTest " ] ,
50
+ dependencies: [
51
+ . target( name: " AsyncAlgorithms " ) ,
52
+ . target( name: " AsyncSequenceValidation " , condition: . when( platforms: [
53
+ . macOS,
54
+ . iOS,
55
+ . tvOS,
56
+ . watchOS,
57
+ . visionOS,
58
+ . macCatalyst,
59
+ . android,
60
+ . linux,
61
+ . openbsd,
62
+ . wasi
63
+ ] ) ) ,
64
+ . target( name: " AsyncAlgorithms_XCTest " , condition: . when( platforms: [
65
+ . macOS,
66
+ . iOS,
67
+ . tvOS,
68
+ . watchOS,
69
+ . visionOS,
70
+ . macCatalyst,
71
+ . android,
72
+ . linux,
73
+ . openbsd,
74
+ . wasi
75
+ ] ) )
76
+ ] ,
47
77
swiftSettings: availabilityMacros + [
48
78
. enableExperimentalFeature( " StrictConcurrency=complete " )
49
79
]
@@ -53,7 +83,7 @@ let package = Package(
53
83
54
84
if Context . environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
55
85
package . dependencies += [
56
- . package ( url: " https://github.com/apple/swift-collections.git " , from: " 1.1.0 " ) ,
86
+ . package ( url: " https://github.com/apple/swift-collections.git " , from: " 1.1.0 " )
57
87
]
58
88
} else {
59
89
package . dependencies += [
0 commit comments