Skip to content

Commit

Permalink
Add deployment targets to the package manifest
Browse files Browse the repository at this point in the history
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
  • Loading branch information
glbrntt committed Oct 4, 2024
1 parent 424a4d8 commit 37702fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37702fd

Please sign in to comment.