Skip to content

Commit 1699b6a

Browse files
committed
Undo formatting changes
1 parent c16a172 commit 1699b6a

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

Package.swift

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,41 @@ let swiftSettings: [SwiftSetting] = [
2323

2424
let package = Package(
2525
name: "swift-openapi-runtime",
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")],
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+
],
2938
targets: [
3039
.target(
3140
name: "OpenAPIRuntime",
32-
dependencies: [.product(name: "HTTPTypes", package: "swift-http-types")],
41+
dependencies: [
42+
.product(name: "HTTPTypes", package: "swift-http-types")
43+
],
44+
swiftSettings: swiftSettings
45+
),
46+
.testTarget(
47+
name: "OpenAPIRuntimeTests",
48+
dependencies: ["OpenAPIRuntime"],
3349
swiftSettings: swiftSettings
34-
), .testTarget(name: "OpenAPIRuntimeTests", dependencies: ["OpenAPIRuntime"], swiftSettings: swiftSettings),
50+
),
3551
]
3652
)
3753

3854
// --- STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
3955
for target in package.targets {
40-
switch target.type {
41-
case .regular, .test, .executable:
56+
if target.type != .plugin {
4257
var settings = target.swiftSettings ?? []
4358
// https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
4459
settings.append(.enableUpcomingFeature("MemberImportVisibility"))
4560
target.swiftSettings = settings
46-
case .macro, .plugin, .system, .binary: () // not applicable
47-
@unknown default: () // we don't know what to do here, do nothing
4861
}
49-
}// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //
62+
}
63+
// --- END: STANDARD CROSS-REPO SETTINGS DO NOT EDIT --- //

0 commit comments

Comments
 (0)