Skip to content

Commit 573d8c1

Browse files
committed
Add amended OS versions to SupportedPlatforms
1 parent 8fe2d8b commit 573d8c1

File tree

1 file changed

+53
-7
lines changed

1 file changed

+53
-7
lines changed

Sources/PackageDescription/SupportedPlatforms.swift

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,19 @@ extension SupportedPlatform {
383383
@available(_PackageDescription, introduced: 6.0)
384384
public static let v15: MacOSVersion = .init(string: "15.0")
385385

386-
/// The value that represents macOS 16.0.
386+
/// The value that represents macOS 16.0, which has been
387+
/// replaced by the value for macOS 26.0.
387388
///
388389
/// - Since: First available in PackageDescription 6.2.
390+
@available(*, unavailable, renamed: "v26")
389391
@available(_PackageDescription, introduced: 6.2)
390392
public static let v16: MacOSVersion = .init(string: "16.0")
393+
394+
/// The value that represents macOS 26.0.
395+
///
396+
/// - Since: First available in PackageDescription 6.2.
397+
@available(_PackageDescription, introduced: 6.2)
398+
public static let v26: MacOSVersion = .init(string: "26.0")
391399
}
392400

393401
/// The supported tvOS version.
@@ -462,11 +470,19 @@ extension SupportedPlatform {
462470
@available(_PackageDescription, introduced: 6.0)
463471
public static let v18: TVOSVersion = .init(string: "18.0")
464472

465-
/// The value that represents tvOS 19.0.
473+
/// The value that represents tvOS 19.0, which has been
474+
/// replaced by the value for tvOS 26.0.
466475
///
467476
/// - Since: First available in PackageDescription 6.2.
477+
@available(*, unavailable, renamed: "v26")
468478
@available(_PackageDescription, introduced: 6.2)
469479
public static let v19: TVOSVersion = .init(string: "19.0")
480+
481+
/// The value that represents tvOS 26.0.
482+
///
483+
/// - Since: First available in PackageDescription 6.2.
484+
@available(_PackageDescription, introduced: 6.2)
485+
public static let v26: TVOSVersion = .init(string: "26.0")
470486
}
471487

472488
/// The supported Mac Catalyst version.
@@ -517,11 +533,19 @@ extension SupportedPlatform {
517533
@available(_PackageDescription, introduced: 6.0)
518534
public static let v18: MacCatalystVersion = .init(string: "18.0")
519535

520-
/// The value that represents Mac Catalyst 19.0.
536+
/// The value that represents Mac Catalyst 19.0, which has been
537+
/// replaced by the value for Mac Catalyst 26.0.
521538
///
522539
/// - Since: First available in PackageDescription 6.2.
540+
@available(*, unavailable, renamed: "v26")
523541
@available(_PackageDescription, introduced: 6.2)
524542
public static let v19: MacCatalystVersion = .init(string: "19.0")
543+
544+
/// The value that represents Mac Catalyst 26.0.
545+
///
546+
/// - Since: First available in PackageDescription 6.2.
547+
@available(_PackageDescription, introduced: 6.2)
548+
public static let v26: MacCatalystVersion = .init(string: "26.0")
525549
}
526550

527551
/// The supported iOS version.
@@ -602,13 +626,19 @@ extension SupportedPlatform {
602626
@available(_PackageDescription, introduced: 6.0)
603627
public static let v18: IOSVersion = .init(string: "18.0")
604628

605-
606-
/// The value that represents iOS 19.0.
629+
/// The value that represents iOS 19.0, which has been
630+
/// replaced by the value for iOS 26.0.
607631
///
608632
/// - Since: First available in PackageDescription 6.2.
633+
@available(*, unavailable, renamed: "v26")
609634
@available(_PackageDescription, introduced: 6.2)
610635
public static let v19: IOSVersion = .init(string: "19.0")
611636

637+
/// The value that represents iOS 26.0.
638+
///
639+
/// - Since: First available in PackageDescription 6.2.
640+
@available(_PackageDescription, introduced: 6.2)
641+
public static let v26: IOSVersion = .init(string: "26.0")
612642
}
613643

614644
/// The supported watchOS version.
@@ -683,11 +713,19 @@ extension SupportedPlatform {
683713
@available(_PackageDescription, introduced: 6.0)
684714
public static let v11: WatchOSVersion = .init(string: "11.0")
685715

686-
/// The value that represents watchOS 12.0.
716+
/// The value that represents watchOS 12.0, which has been
717+
/// replaced by the value for watchOS 26.0.
687718
///
688719
/// - Since: First available in PackageDescription 6.2.
720+
@available(*, unavailable, renamed: "v26")
689721
@available(_PackageDescription, introduced: 6.2)
690722
public static let v12: WatchOSVersion = .init(string: "12.0")
723+
724+
/// The value that represents watchOS 26.0.
725+
///
726+
/// - Since: First available in PackageDescription 6.2.
727+
@available(_PackageDescription, introduced: 6.2)
728+
public static let v26: WatchOSVersion = .init(string: "26.0")
691729
}
692730

693731
/// The supported visionOS version.
@@ -714,11 +752,19 @@ extension SupportedPlatform {
714752
@available(_PackageDescription, introduced: 6.0)
715753
public static let v2: VisionOSVersion = .init(string: "2.0")
716754

717-
/// The value that represents visionOS 3.0.
755+
/// The value that represents visionOS 3.0, which has been
756+
/// replaced by the value for visionOS 26.0.
718757
///
719758
/// - Since: First available in PackageDescription 6.2.
759+
@available(*, unavailable, renamed: "v26")
720760
@available(_PackageDescription, introduced: 6.2)
721761
public static let v3: VisionOSVersion = .init(string: "3.0")
762+
763+
/// The value that represents visionOS 26.0.
764+
///
765+
/// - Since: First available in PackageDescription 6.2.
766+
@available(_PackageDescription, introduced: 6.2)
767+
public static let v26: VisionOSVersion = .init(string: "26.0")
722768
}
723769

724770
/// The supported DriverKit version.

0 commit comments

Comments
 (0)