Browse Source

Add supported platforms to Package.swift (#696)

Motivation:

We should be clearer about which Darwin platforms we support.

Modifications:

Add the supported platforms to Package.swift

Result:

Clearer platform support model.
George Barnett 6 years ago
parent
commit
1172e1799a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Package.swift

+ 4 - 0
Package.swift

@@ -19,6 +19,10 @@ import Foundation
 
 let package = Package(
   name: "GRPC",
+  platforms: [
+    // We can't use `.watchOS(.v6)` since it isn't available with `swift-tools-version:5.0`.
+    .macOS(.v10_12), .iOS(.v10), .tvOS(.v10), .watchOS("6.0")
+  ],
   products: [
     .library(name: "GRPC", targets: ["GRPC"]),
     .executable(name: "protoc-gen-grpc-swift", targets: ["protoc-gen-grpc-swift"]),