Skip to content

Commit 4b76f73

Browse files
Add iPod 7G id
1 parent 97ce281 commit 4b76f73

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

Source/DeviceIdentifier.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ internal struct DeviceIdentifier {
4343
case "iPod4,1": return .iPodTouch4G
4444
case "iPod5,1": return .iPodTouch5G
4545
case "iPod7,1": return .iPodTouch6G
46+
case "iPod9,1": return .iPodTouch7G
4647

4748
case "iPad1,1", "iPad1,2": return .iPad1G
4849
case "iPad2,1", "iPad2,2", "iPad2,3", "iPad2,4": return .iPad2G

Source/DeviceModel+Name.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public extension DeviceModel {
3131
case .iPodTouch4G: return "iPod touch 4G"
3232
case .iPodTouch5G: return "iPod touch 5G"
3333
case .iPodTouch6G: return "iPod touch 6G"
34+
case .iPodTouch7G: return "iPod touch 7G"
3435

3536
case .iPad1G: return "iPad 1G"
3637
case .iPad2G: return "iPad 2G"

Source/DeviceModel.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public enum DeviceModel: Equatable {
3030
case iPodTouch4G
3131
case iPodTouch5G
3232
case iPodTouch6G
33+
case iPodTouch7G
3334

3435
case iPad1G
3536
case iPad2G

Tests/DeviceIdentifierTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public class DeviceIdentifierTests: XCTestCase {
111111
XCTAssertEqual(DeviceIdentifier("iPod4,1").model, .iPodTouch4G)
112112
XCTAssertEqual(DeviceIdentifier("iPod5,1").model, .iPodTouch5G)
113113
XCTAssertEqual(DeviceIdentifier("iPod7,1").model, .iPodTouch6G)
114+
XCTAssertEqual(DeviceIdentifier("iPod9,1").model, .iPodTouch7G)
114115
}
115116

116117
public func testAppleTVIdentificators() {

0 commit comments

Comments
 (0)