Skip to content

Commit ab32dd4

Browse files
authored
Merge pull request #996 from CodaFi/platinum
[NFC] Be Explicit About tvOS Feature Availability
2 parents 276d4ef + 31ad0aa commit ab32dd4

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Sources/SwiftDriver/Utilities/Triple+Platforms.swift

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -344,20 +344,6 @@ extension Triple {
344344
self.nonDarwin = nonDarwin
345345
}
346346

347-
/// Describes the availability of a feature that is supported on multiple platforms,
348-
/// but is tied to a particular version.
349-
///
350-
/// If `tvOS` availability is omitted, it will be set to be the same as `iOS`.
351-
public init(
352-
macOS: Availability,
353-
iOS: Availability,
354-
watchOS: Availability,
355-
nonDarwin: Bool = false
356-
) {
357-
self.init(macOS: macOS, iOS: iOS, tvOS: iOS, watchOS: watchOS,
358-
nonDarwin: nonDarwin)
359-
}
360-
361347
/// Returns the version when the feature was introduced on the specified Darwin
362348
/// platform, or `.unavailable` if the feature has not been introduced there.
363349
public subscript(darwinPlatform: DarwinPlatform) -> Availability {
@@ -404,6 +390,7 @@ extension Triple.FeatureAvailability {
404390
static let nativeARC = Self(
405391
macOS: .available(since: Triple.Version(10, 11, 0)),
406392
iOS: .available(since: Triple.Version(9, 0, 0)),
393+
tvOS: .available(since: Triple.Version(9, 0, 0)),
407394
watchOS: .availableInAllVersions
408395
)
409396
// When updating the versions listed here, please record the most recent

0 commit comments

Comments
 (0)