From 37702fd2267445e80d99ac68893b10664198f22e Mon Sep 17 00:00:00 2001 From: George Barnett Date: Fri, 4 Oct 2024 10:23:32 +0100 Subject: [PATCH] Add deployment targets to the package manifest Motivation: Core components of grpc-swift v2 require API from the latest SDKs. This causes a proliferation of availability annotations through our API. Rather than doing this we can set the minimum platforms in the package manifest. Modifications: - Remove availability annotations - Set platforms in the package manifest Result: - Less boilerplate - Users must set platforms in their package manifest --- Package.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Package.swift b/Package.swift index 7130c9d..00d9878 100644 --- a/Package.swift +++ b/Package.swift @@ -97,6 +97,13 @@ let targets: [Target] = [ let package = Package( name: "grpc-swift-protobuf", + platforms: [ + .macOS(.v15), + .iOS(.v18), + .tvOS(.v18), + .watchOS(.v11), + .visionOS(.v2), + ], products: products, dependencies: dependencies, targets: targets