Skip to content

Commit 1699e24

Browse files
committedMar 28, 2025
Move platform requirements to availability annotations
Adding or raising the deployment platforms in the package manifest is a SemVer major breaking change as consumers must also add or raise their deployment platforms. This is a known limitation of SwiftPM. Unforunately this means that it's very difficult for non-leaf packages to adopt packages which declare their platforms in the manifest. Doing so puts the brakes on adoption and ecosystem growth. For 'core' packages like this one availability constraints should be expressed on declarations rather than in the manifest. This patch adds equivalent availability annotations to declarations across the package and removes platforms from the package manifest.
1 parent 4c3ea81 commit 1699e24

File tree

57 files changed

+145
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+145
-16
lines changed
 

‎Package.swift

-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ import PackageDescription
44

55
let package = Package(
66
name: "swift-async-algorithms",
7-
platforms: [
8-
.macOS("10.15"),
9-
.iOS("13.0"),
10-
.tvOS("13.0"),
11-
.watchOS("6.0")
12-
],
137
products: [
148
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]),
159
],

‎Package@swift-5.7.swift

-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ import PackageDescription
44

55
let package = Package(
66
name: "swift-async-algorithms",
7-
platforms: [
8-
.macOS("10.15"),
9-
.iOS("13.0"),
10-
.tvOS("13.0"),
11-
.watchOS("6.0")
12-
],
137
products: [
148
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]),
159
.library(name: "AsyncSequenceValidation", targets: ["AsyncSequenceValidation"]),

0 commit comments

Comments
 (0)