@@ -23,41 +23,27 @@ let swiftSettings: [SwiftSetting] = [
23
23
24
24
let package = Package (
25
25
name: " swift-openapi-runtime " ,
26
- platforms: [
27
- . macOS( . v10_15) , . macCatalyst( . v13) , . iOS( . v13) , . tvOS( . v13) , . watchOS( . v6) , . visionOS( . v1)
28
- ] ,
29
- products: [
30
- . library(
31
- name: " OpenAPIRuntime " ,
32
- targets: [ " OpenAPIRuntime " ]
33
- )
34
- ] ,
35
- dependencies: [
36
- . package ( url: " https://github.com/apple/swift-http-types " , from: " 1.0.0 " ) ,
37
- ] ,
26
+ platforms: [ . macOS( . v10_15) , . macCatalyst( . v13) , . iOS( . v13) , . tvOS( . v13) , . watchOS( . v6) , . visionOS( . v1) ] ,
27
+ products: [ . library( name: " OpenAPIRuntime " , targets: [ " OpenAPIRuntime " ] ) ] ,
28
+ dependencies: [ . package ( url: " https://github.com/apple/swift-http-types " , from: " 1.0.0 " ) ] ,
38
29
targets: [
39
30
. target(
40
31
name: " OpenAPIRuntime " ,
41
- dependencies: [
42
- . product( name: " HTTPTypes " , package : " swift-http-types " )
43
- ] ,
44
- swiftSettings: swiftSettings
45
- ) ,
46
- . testTarget(
47
- name: " OpenAPIRuntimeTests " ,
48
- dependencies: [ " OpenAPIRuntime " ] ,
32
+ dependencies: [ . product( name: " HTTPTypes " , package : " swift-http-types " ) ] ,
49
33
swiftSettings: swiftSettings
50
- ) ,
34
+ ) , . testTarget ( name : " OpenAPIRuntimeTests " , dependencies : [ " OpenAPIRuntime " ] , swiftSettings : swiftSettings ) ,
51
35
]
52
36
)
53
37
54
38
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
55
39
for target in package . targets {
56
- if target. type != . plugin {
40
+ switch target. type {
41
+ case . regular, . test, . executable:
57
42
var settings = target. swiftSettings ?? [ ]
58
43
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
59
44
settings. append ( . enableUpcomingFeature( " MemberImportVisibility " ) )
60
45
target. swiftSettings = settings
46
+ case . macro, . plugin, . system, . binary: ( ) // not applicable
47
+ @unknown default : ( ) // we don't know what to do here, do nothing
61
48
}
62
- }
63
- // --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
49
+ } // --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
0 commit comments