Skip to content

Commit 1d00d84

Browse files
Zandor300denisenepraunig
authored andcommitted
Comply with renaming of Apple TV (4th generation) to Apple TV HD. (devicekit#196)
* Comply with renaming of Apple TV (4th generation) to Apple TV HD. * Fix Apple TV HD name in tests.
1 parent 8945244 commit 1d00d84

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Source/Device.generated.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public enum Device {
213213
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP773/homepod_space_gray_large_2x.jpg)
214214
case homePod
215215
#elseif os(tvOS)
216-
/// Device is an [Apple TV 4](https://support.apple.com/kb/SP724)
216+
/// Device is an [Apple TV HD](https://support.apple.com/kb/SP724) (Previously Apple TV (4th generation))
217217
///
218218
/// ![Image](http://images.apple.com/v/tv/c/images/overview/buy_tv_large_2x.jpg)
219219
case appleTV4
@@ -983,7 +983,7 @@ extension Device: CustomStringConvertible {
983983
}
984984
#elseif os(tvOS)
985985
switch self {
986-
case .appleTV4: return "Apple TV 4"
986+
case .appleTV4: return "Apple TV HD"
987987
case .appleTV4K: return "Apple TV 4K"
988988
case .simulator(let model): return "Simulator (\(model))"
989989
case .unknown(let identifier): return identifier

Source/Device.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ homePods = [
8888
]
8989
# tvOS
9090
tvs = [
91-
Device("appleTV4", "Device is an [Apple TV 4](https://support.apple.com/kb/SP724)", "http://images.apple.com/v/tv/c/images/overview/buy_tv_large_2x.jpg", ["AppleTV5,3"], 0, (), "Apple TV 4", -1, False, False, False, False, False, False, False, False, 0, False, 0),
92-
Device("appleTV4K", "Device is an [Apple TV 4K](https://support.apple.com/kb/SP769)", "https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP769/appletv4k.png", ["AppleTV6,2"], 0, (), "Apple TV 4K", -1, False, False, False, False, False, False, False, False, 0, False, 0)
91+
Device("appleTV4", "Device is an [Apple TV HD](https://support.apple.com/kb/SP724) (Previously Apple TV (4th generation))", "http://images.apple.com/v/tv/c/images/overview/buy_tv_large_2x.jpg", ["AppleTV5,3"], 0, (), "Apple TV HD", -1, False, False, False, False, False, False, False, False, 0, False, 0),
92+
Device("appleTV4K", "Device is an [Apple TV 4K](https://support.apple.com/kb/SP769)", "https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP769/appletv4k.png", ["AppleTV6,2"], 0, (), "Apple TV 4K", -1, False, False, False, False, False, False, False, False, 0, False, 0)
9393
]
9494

9595
# watchOS

Tests/Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ class DeviceKitTests: XCTestCase {
421421
}
422422

423423
func testDescriptionFromIdentifier() {
424-
XCTAssertEqual(Device.mapToDevice(identifier: "AppleTV5,3").description, "Apple TV 4")
424+
XCTAssertEqual(Device.mapToDevice(identifier: "AppleTV5,3").description, "Apple TV HD")
425425
XCTAssertEqual(Device.mapToDevice(identifier: "AppleTV6,2").description, "Apple TV 4K")
426426
}
427427

0 commit comments

Comments
 (0)