Skip to content

Commit 0e95676

Browse files
authored
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
1 parent 424a4d8 commit 0e95676

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Package.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ let targets: [Target] = [
9797

9898
let package = Package(
9999
name: "grpc-swift-protobuf",
100+
platforms: [
101+
.macOS(.v15),
102+
.iOS(.v18),
103+
.tvOS(.v18),
104+
.watchOS(.v11),
105+
.visionOS(.v2),
106+
],
100107
products: products,
101108
dependencies: dependencies,
102109
targets: targets

0 commit comments

Comments
 (0)