Skip to content

Commit b4dbd14

Browse files
authored
feat(device_info_plus): Add missing device identifiers for Macs on M4 (#3700)
1 parent 42b079b commit b4dbd14

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/device_info_plus/device_info_plus/macos/device_info_plus/Sources/device_info_plus/DeviceIdentifiers.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
// Models list is taken from support.apple.com
3+
// Models list is taken from support.apple.com and https://theapplewiki.com/wiki/Models
44
// Example of the list with models https://support.apple.com/en-us/102869
55

66
func getMacModelName(modelNumber: String) -> String {
@@ -23,6 +23,8 @@ func getMacModelName(modelNumber: String) -> String {
2323
case "Mac14,15": return "MacBook Air (15-inch, 2023)"
2424
case "Mac15,12": return "MacBook Air (13-inch, 2024)"
2525
case "Mac15,13": return "MacBook Air (15-inch, 2024)"
26+
case "Mac16,12": return "MacBook Air (13-inch, 2025)"
27+
case "Mac16,13": return "MacBook Air (15-inch, 2025)"
2628

2729
// MacBook Pro models (2012 and later)
2830
case "MacBookPro10,1": return "MacBook Pro (15-inch, 2012-2013)"
@@ -53,6 +55,8 @@ func getMacModelName(modelNumber: String) -> String {
5355
case "Mac15,3": return "MacBook Pro (14-inch, 2023)"
5456
case "Mac15,6", "Mac15,8", "Mac15,10": return "MacBook Pro (14-inch, 2023)"
5557
case "Mac15,7", "Mac15,9", "Mac15,11": return "MacBook Pro (16-inch, 2023)"
58+
case "Mac16,1", "Mac16,6", "Mac16,8": return "MacBook Pro (14-inch, 2024)"
59+
case "Mac16,5", "Mac16,7": return "MacBook Pro (16-inch, 2024)"
5660
case "Mac17,2": return "MacBook Pro (14-inch, 2025)"
5761

5862
// iMac models (2013 and later)
@@ -81,7 +85,7 @@ func getMacModelName(modelNumber: String) -> String {
8185
case "MacMini9,1": return "Mac mini (2020)"
8286
case "Mac14,12": return "Mac mini (2023)"
8387
case "Mac14,3": return "Mac mini (2023)"
84-
case "Mac16,15", "Mac16,10": return "Mac mini (2024)"
88+
case "Mac16,11", "Mac16,10": return "Mac mini (2024)"
8589

8690
// Mac Pro models (2013 and later)
8791
case "MacPro6,1": return "Mac Pro (Late 2013)"
@@ -94,6 +98,7 @@ func getMacModelName(modelNumber: String) -> String {
9498
// Mac Studio (2022 and newer)
9599
case "Mac13,1", "Mac13,2": return "Mac Studio (2022)"
96100
case "Mac14,13", "Mac14,14": return "Mac Studio (2023)"
101+
case "Mac15,14", "Mac16,9": return "Mac Studio (2025)"
97102

98103
default: return "Unknown Model"
99104
}

0 commit comments

Comments
 (0)