Skip to content

add missing "since" and "availability" tags on platform versions #6140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 30 additions & 10 deletions Sources/PackageDescription/SupportedPlatforms.swift
Original file line number Diff line number Diff line change
Expand Up @@ -279,27 +279,31 @@ extension SupportedPlatform {
/// The value that represents macOS 10.10.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "macOS 10.13 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "macOS 10.13 is the oldest supported version")
public static let v10_10: MacOSVersion = .init(string: "10.10")

/// The value that represents macOS 10.11.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "macOS 10.13 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "macOS 10.13 is the oldest supported version")
public static let v10_11: MacOSVersion = .init(string: "10.11")

/// The value that represents macOS 10.12.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "macOS 10.13 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "macOS 10.13 is the oldest supported version")
public static let v10_12: MacOSVersion = .init(string: "10.12")

/// The value that represents macOS 10.13.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, introduced: 5.0)
public static let v10_13: MacOSVersion = .init(string: "10.13")

/// The value that represents macOS 10.14.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, introduced: 5.0)
public static let v10_14: MacOSVersion = .init(string: "10.14")

/// The value that represents macOS 10.15.
Expand All @@ -313,9 +317,11 @@ extension SupportedPlatform {
///
/// - Since: First available in PackageDescription 5.3.
@available(*, unavailable, renamed: "v11")
@available(_PackageDescription, introduced: 5.3)
public static let v10_16: MacOSVersion = .init(string: "11.0")

/// The value that represents macOS 11.0.
/// - Since: First available in PackageDescription 5.3.
@available(_PackageDescription, introduced: 5.3)
public static let v11: MacOSVersion = .init(string: "11.0")

Expand Down Expand Up @@ -347,23 +353,25 @@ extension SupportedPlatform {
/// The value that represents tvOS 9.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "tvOS 11.0 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "tvOS 11.0 is the oldest supported version")
public static let v9: TVOSVersion = .init(string: "9.0")

/// The value that represents tvOS 10.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "tvOS 11.0 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "tvOS 11.0 is the oldest supported version")
public static let v10: TVOSVersion = .init(string: "10.0")

/// The value that represents tvOS 11.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, introduced: 5.0)
public static let v11: TVOSVersion = .init(string: "11.0")

/// The value that represents tvOS 12.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, introduced: 5.0)
public static let v12: TVOSVersion = .init(string: "12.0")

/// The value that represents tvOS 13.0.
Expand Down Expand Up @@ -443,29 +451,31 @@ extension SupportedPlatform {
/// The value that represents iOS 8.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "iOS 11.0 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "iOS 11.0 is the oldest supported version")
public static let v8: IOSVersion = .init(string: "8.0")

/// The value that represents iOS 9.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "iOS 11.0 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "iOS 11.0 is the oldest supported version")
public static let v9: IOSVersion = .init(string: "9.0")

/// The value that represents iOS 10.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "iOS 11.0 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "iOS 11.0 is the oldest supported version")
public static let v10: IOSVersion = .init(string: "10.0")

/// The value that represents iOS 11.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, introduced: 5.0)
public static let v11: IOSVersion = .init(string: "11.0")

/// The value that represents iOS 12.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, introduced: 5.0)
public static let v12: IOSVersion = .init(string: "12.0")

/// The value that represents iOS 13.0.
Expand Down Expand Up @@ -508,23 +518,25 @@ extension SupportedPlatform {
/// The value that represents watchOS 2.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "watchOS 4.0 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "watchOS 4.0 is the oldest supported version")
public static let v2: WatchOSVersion = .init(string: "2.0")

/// The value that represents watchOS 3.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, deprecated: 5.7, message: "watchOS 4.0 is the oldest supported version")
@available(_PackageDescription, introduced: 5.0, deprecated: 5.7, message: "watchOS 4.0 is the oldest supported version")
public static let v3: WatchOSVersion = .init(string: "3.0")

/// The value that represents watchOS 4.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, introduced: 5.0)
public static let v4: WatchOSVersion = .init(string: "4.0")

/// The value that represents watchOS 5.0.
///
/// - Since: First available in PackageDescription 5.0.
@available(_PackageDescription, introduced: 5.0)
public static let v5: WatchOSVersion = .init(string: "5.0")

/// The value that represents watchOS 6.0.
Expand Down Expand Up @@ -565,18 +577,26 @@ extension SupportedPlatform {
}

/// The value that represents DriverKit 19.0.
///
/// - Since: First available in PackageDescription 5.5.
@available(_PackageDescription, introduced: 5.5)
public static let v19: DriverKitVersion = .init(string: "19.0")

/// The value that represents DriverKit 20.0.
///
/// - Since: First available in PackageDescription 5.5.
@available(_PackageDescription, introduced: 5.5)
public static let v20: DriverKitVersion = .init(string: "20.0")

/// The value that represents DriverKit 21.0.
///
/// - Since: First available in PackageDescription 5.5.
@available(_PackageDescription, introduced: 5.5)
public static let v21: DriverKitVersion = .init(string: "21.0")

/// The value that represents DriverKit 22.0.
///
/// - Since: First available in PackageDescription 5.7.
@available(_PackageDescription, introduced: 5.7)
public static let v22: DriverKitVersion = .init(string: "22.0")
}
Expand Down