Browse Source

Add deployment targets to the package manifest (#7)

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
George Barnett 1 year ago
parent
commit
0e95676697
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Package.swift

+ 7 - 0
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