Skip to content

Commit 4cc3f07

Browse files
authored
feat(device_info_plus): Add identifiers for new Apple devices on M5 chip (#3698)
1 parent 5040a78 commit 4cc3f07

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/device_info_plus/device_info_plus/ios/device_info_plus/Sources/device_info_plus/DeviceIdentifiers.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ + (NSString *)userKnownDeviceModel:(NSString *)identifier {
217217
} else if ([identifier isEqualToString:@"iPad16,5"] ||
218218
[identifier isEqualToString:@"iPad16,6"]) {
219219
return @"iPad Pro 13-Inch (M4)";
220+
} else if ([identifier isEqualToString:@"iPad17,3"] ||
221+
[identifier isEqualToString:@"iPad17,4"]) {
222+
return @"iPad Pro 13-Inch (M5)";
220223
} else {
221224
return @"Unknown device";
222225
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func getMacModelName(modelNumber: String) -> String {
5353
case "Mac15,3": return "MacBook Pro (14-inch, 2023)"
5454
case "Mac15,6", "Mac15,8", "Mac15,10": return "MacBook Pro (14-inch, 2023)"
5555
case "Mac15,7", "Mac15,9", "Mac15,11": return "MacBook Pro (16-inch, 2023)"
56+
case "Mac17,2": return "MacBook Pro (14-inch, 2025)"
5657

5758
// iMac models (2013 and later)
5859
case "iMac13,1": return "iMac (21.5-inch, 2013)"

0 commit comments

Comments
 (0)