Skip to content

Commit 3a00c61

Browse files
committed
Add more build settings to test targets
Motivation: The test targets don't set the same Swift as the library targets. There's no reason for them not to. Modifications: Apply default settings to test targets. Result: Test targets use Swift 6 language mode, explicit existential any, and internal imports by default
1 parent 54227cb commit 3a00c61

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Package.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ let targets: [Target] = [
7070
],
7171
resources: [
7272
.copy("Configuration/Inputs")
73-
]
73+
],
74+
swiftSettings: defaultSwiftSettings
7475
),
7576

7677
// In-process client and server transport implementations
@@ -85,7 +86,8 @@ let targets: [Target] = [
8586
name: "GRPCInProcessTransportTests",
8687
dependencies: [
8788
.target(name: "GRPCInProcessTransport")
88-
]
89+
],
90+
swiftSettings: defaultSwiftSettings
8991
),
9092

9193
// Code generator library for protoc-gen-grpc-swift
@@ -99,7 +101,8 @@ let targets: [Target] = [
99101
name: "GRPCCodeGenTests",
100102
dependencies: [
101103
.target(name: "GRPCCodeGen")
102-
]
104+
],
105+
swiftSettings: defaultSwiftSettings
103106
)
104107
]
105108

0 commit comments

Comments
 (0)