File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -1149,8 +1149,7 @@ public final class PackageBuilder {
1149
1149
var conditions : [ PackageCondition ] = [ ]
1150
1150
1151
1151
if let config = condition? . config. flatMap ( { BuildConfiguration ( rawValue: $0) } ) {
1152
- let condition = PackageCondition ( configuration: config)
1153
- conditions. append ( condition)
1152
+ conditions. append ( . init( configuration: config) )
1154
1153
}
1155
1154
1156
1155
if let platforms = condition? . platformNames. map ( {
@@ -1159,11 +1158,9 @@ public final class PackageBuilder {
1159
1158
} else {
1160
1159
return PackageModel . Platform. custom ( name: $0, oldestSupportedVersion: . unknown)
1161
1160
}
1162
- } ) ,
1163
- !platforms. isEmpty
1161
+ } ) , !platforms. isEmpty
1164
1162
{
1165
- let condition = PackageCondition ( platforms: platforms)
1166
- conditions. append ( condition)
1163
+ conditions. append ( . init( platforms: platforms) )
1167
1164
}
1168
1165
1169
1166
return conditions
Original file line number Diff line number Diff line change @@ -31,18 +31,18 @@ public struct PlatformRegistry {
31
31
/// The static list of known platforms.
32
32
private static var _knownPlatforms : [ Platform ] {
33
33
[
34
+ . android,
35
+ . driverKit,
36
+ . iOS,
37
+ . linux,
34
38
. macOS,
35
39
. macCatalyst,
36
- . iOS ,
40
+ . openbsd ,
37
41
. tvOS,
38
- . watchOS,
39
42
. visionOS,
40
- . linux,
41
- . windows,
42
- . android,
43
43
. wasi,
44
- . driverKit ,
45
- . openbsd
44
+ . watchOS ,
45
+ . windows ,
46
46
]
47
47
}
48
48
}
You can’t perform that action at this time.
0 commit comments