Skip to content

Commit

Permalink
chore: Update device models (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
scsinke authored Apr 3, 2024
1 parent 0ff3b40 commit b932254
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions Sources/Q42Stats/Q42Stats.swift
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ private extension UIUserInterfaceIdiom {
case .tv: return "tv"
case .unspecified: return "unspecified"
case .mac: return "mac"
case .vision: return "vision"
@unknown default: return "unknown"
}
}
Expand Down Expand Up @@ -526,17 +527,25 @@ extension UIDevice {
"iPad12,1": "iPad (9th generation)",
"iPad12,2": "iPad (9th generation)",
"iPad13,1": "iPad Air (4th generation)",
"iPad13,10": "iPad Pro (12.9-inch) (5th generation)",
"iPad13,11": "iPad Pro (12.9-inch) (5th generation)",
"iPad13,2": "iPad Air (4th generation)",
"iPad13,4": "iPad Pro (11-inch) (3rd generation)",
"iPad13,5": "iPad Pro (11-inch) (3rd generation)",
"iPad13,6": "iPad Pro (11-inch) (3rd generation)",
"iPad13,7": "iPad Pro (11-inch) (3rd generation)",
"iPad13,8": "iPad Pro (12.9-inch) (5th generation)",
"iPad13,9": "iPad Pro (12.9-inch) (5th generation)",
"iPad13,10": "iPad Pro (12.9-inch) (5th generation)",
"iPad13,11": "iPad Pro (12.9-inch) (5th generation)",
"iPad13,16" : "iPad Air 5th Gen (WiFi)",
"iPad13,17" : "iPad Air 5th Gen (WiFi+Cellular)",
"iPad13,18" : "iPad 10th Gen",
"iPad13,19" : "iPad 10th Gen",
"iPad14,1": "iPad mini (6th generation)",
"iPad14,2": "iPad mini (6th generation)",
"iPad14,3" : "iPad Pro 11 inch 4th Gen",
"iPad14,4" : "iPad Pro 11 inch 4th Gen",
"iPad14,5" : "iPad Pro 12.9 inch 6th Gen",
"iPad14,6" : "iPad Pro 12.9 inch 6th Gen",

"iPhone1,1": "iPhone",
"iPhone1,2": "iPhone 3G",
Expand All @@ -546,7 +555,6 @@ extension UIDevice {
"iPhone4,1": "iPhone 4S", //
"iPhone5,1": "iPhone 5", // (model A1428, AT&T/Canada)
"iPhone5,2": "iPhone 5", // (model A1429, everything else)

"iPhone5,3": "iPhone 5c", // (model A1456, A1532 | GSM)
"iPhone5,4": "iPhone 5c", // (model A1507, A1516, A1526 (China), A1529 | Global)
"iPhone6,1": "iPhone 5s", // (model A1433, A1533 | GSM)
Expand Down Expand Up @@ -582,6 +590,15 @@ extension UIDevice {
"iPhone14,3": "iPhone 13 Pro Max", //
"iPhone14,4": "iPhone 13 mini", //
"iPhone14,5": "iPhone 13", //
"iPhone14,6" : "iPhone SE 3rd Gen",
"iPhone14,7" : "iPhone 14",
"iPhone14,8" : "iPhone 14 Plus",
"iPhone15,2" : "iPhone 14 Pro",
"iPhone15,3" : "iPhone 14 Pro Max",
"iPhone15,4" : "iPhone 15",
"iPhone15,5" : "iPhone 15 Plus",
"iPhone16,1" : "iPhone 15 Pro",
"iPhone16,2" : "iPhone 15 Pro Max",
]

let id = modelIdentifier
Expand Down

0 comments on commit b932254

Please sign in to comment.