From 3a00c61ea2289bf1d49f9563fa5e91cbab816fd1 Mon Sep 17 00:00:00 2001 From: George Barnett Date: Wed, 6 Nov 2024 15:03:57 +0000 Subject: [PATCH] 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 --- Package.swift | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Package.swift b/Package.swift index c1aa65bfc..54622239f 100644 --- a/Package.swift +++ b/Package.swift @@ -70,7 +70,8 @@ let targets: [Target] = [ ], resources: [ .copy("Configuration/Inputs") - ] + ], + swiftSettings: defaultSwiftSettings ), // In-process client and server transport implementations @@ -85,7 +86,8 @@ let targets: [Target] = [ name: "GRPCInProcessTransportTests", dependencies: [ .target(name: "GRPCInProcessTransport") - ] + ], + swiftSettings: defaultSwiftSettings ), // Code generator library for protoc-gen-grpc-swift @@ -99,7 +101,8 @@ let targets: [Target] = [ name: "GRPCCodeGenTests", dependencies: [ .target(name: "GRPCCodeGen") - ] + ], + swiftSettings: defaultSwiftSettings ) ]