Skip to content

Commit f97f76c

Browse files
authored
Add more build settings to test targets (#2106)
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 55e39fa commit f97f76c

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
@@ -69,7 +69,8 @@ let targets: [Target] = [
6969
],
7070
resources: [
7171
.copy("Configuration/Inputs")
72-
]
72+
],
73+
swiftSettings: defaultSwiftSettings
7374
),
7475

7576
// In-process client and server transport implementations
@@ -84,7 +85,8 @@ let targets: [Target] = [
8485
name: "GRPCInProcessTransportTests",
8586
dependencies: [
8687
.target(name: "GRPCInProcessTransport")
87-
]
88+
],
89+
swiftSettings: defaultSwiftSettings
8890
),
8991

9092
// Code generator library for protoc-gen-grpc-swift
@@ -97,7 +99,8 @@ let targets: [Target] = [
9799
name: "GRPCCodeGenTests",
98100
dependencies: [
99101
.target(name: "GRPCCodeGen")
100-
]
102+
],
103+
swiftSettings: defaultSwiftSettings
101104
),
102105
]
103106

0 commit comments

Comments
 (0)