Skip to content

Commit c546bcd

Browse files
committed
Add amended OS versions to SupportedPlatforms
(cherry picked from commit 573d8c1) # Conflicts: # Sources/PackageDescription/SupportedPlatforms.swift
1 parent 9bbf042 commit c546bcd

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed

Sources/PackageDescription/SupportedPlatforms.swift

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,20 @@ extension SupportedPlatform {
382382
/// - Since: First available in PackageDescription 6.0.
383383
@available(_PackageDescription, introduced: 6.0)
384384
public static let v15: MacOSVersion = .init(string: "15.0")
385+
386+
/// The value that represents macOS 16.0, which has been
387+
/// replaced by the value for macOS 26.0.
388+
///
389+
/// - Since: First available in PackageDescription 6.2.
390+
@available(*, unavailable, renamed: "v26")
391+
@available(_PackageDescription, introduced: 6.2)
392+
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")
385399
}
386400

387401
/// The supported tvOS version.
@@ -455,6 +469,20 @@ extension SupportedPlatform {
455469
/// - Since: First available in PackageDescription 6.0.
456470
@available(_PackageDescription, introduced: 6.0)
457471
public static let v18: TVOSVersion = .init(string: "18.0")
472+
473+
/// The value that represents tvOS 19.0, which has been
474+
/// replaced by the value for tvOS 26.0.
475+
///
476+
/// - Since: First available in PackageDescription 6.2.
477+
@available(*, unavailable, renamed: "v26")
478+
@available(_PackageDescription, introduced: 6.2)
479+
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")
458486
}
459487

460488
/// The supported Mac Catalyst version.
@@ -504,6 +532,20 @@ extension SupportedPlatform {
504532
/// - Since: First available in PackageDescription 6.0.
505533
@available(_PackageDescription, introduced: 6.0)
506534
public static let v18: MacCatalystVersion = .init(string: "18.0")
535+
536+
/// The value that represents Mac Catalyst 19.0, which has been
537+
/// replaced by the value for Mac Catalyst 26.0.
538+
///
539+
/// - Since: First available in PackageDescription 6.2.
540+
@available(*, unavailable, renamed: "v26")
541+
@available(_PackageDescription, introduced: 6.2)
542+
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")
507549
}
508550

509551
/// The supported iOS version.
@@ -583,6 +625,20 @@ extension SupportedPlatform {
583625
/// - Since: First available in PackageDescription 6.0.
584626
@available(_PackageDescription, introduced: 6.0)
585627
public static let v18: IOSVersion = .init(string: "18.0")
628+
629+
/// The value that represents iOS 19.0, which has been
630+
/// replaced by the value for iOS 26.0.
631+
///
632+
/// - Since: First available in PackageDescription 6.2.
633+
@available(*, unavailable, renamed: "v26")
634+
@available(_PackageDescription, introduced: 6.2)
635+
public static let v19: IOSVersion = .init(string: "19.0")
636+
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")
586642
}
587643

588644
/// The supported watchOS version.
@@ -656,6 +712,20 @@ extension SupportedPlatform {
656712
/// - Since: First available in PackageDescription 6.0.
657713
@available(_PackageDescription, introduced: 6.0)
658714
public static let v11: WatchOSVersion = .init(string: "11.0")
715+
716+
/// The value that represents watchOS 12.0, which has been
717+
/// replaced by the value for watchOS 26.0.
718+
///
719+
/// - Since: First available in PackageDescription 6.2.
720+
@available(*, unavailable, renamed: "v26")
721+
@available(_PackageDescription, introduced: 6.2)
722+
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")
659729
}
660730

661731
/// The supported visionOS version.
@@ -681,6 +751,20 @@ extension SupportedPlatform {
681751
/// - Since: First available in PackageDescription 6.0.
682752
@available(_PackageDescription, introduced: 6.0)
683753
public static let v2: VisionOSVersion = .init(string: "2.0")
754+
755+
/// The value that represents visionOS 3.0, which has been
756+
/// replaced by the value for visionOS 26.0.
757+
///
758+
/// - Since: First available in PackageDescription 6.2.
759+
@available(*, unavailable, renamed: "v26")
760+
@available(_PackageDescription, introduced: 6.2)
761+
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")
684768
}
685769

686770
/// The supported DriverKit version.
@@ -730,6 +814,12 @@ extension SupportedPlatform {
730814
/// - Since: First available in PackageDescription 6.0.
731815
@available(_PackageDescription, introduced: 6.0)
732816
public static let v24: DriverKitVersion = .init(string: "24.0")
817+
818+
/// The value that represents DriverKit 25.0.
819+
///
820+
/// - Since: First available in PackageDescription 6.2.
821+
@available(_PackageDescription, introduced: 6.2)
822+
public static let v25: DriverKitVersion = .init(string: "25.0")
733823
}
734824

735825
/// A supported custom platform version.

0 commit comments

Comments
 (0)