Merge pull request #295 from LePips/add-m1-to-device-builder

Add M1 to Device Builder
This commit is contained in:
aiden 3 2022-01-13 17:09:57 -05:00 committed by GitHub
commit 775e903d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ enum CPUModel {
case A12Z
case A13
case A14
case M1
case A99
}
@ -175,6 +176,7 @@ class DeviceProfileBuilder {
.A12Z: 16,
.A13: 17,
.A14: 18,
.M1: 19,
.A99: 99,
]
return intValues[CPUinfo()] ?? 0 >= intValues[minimumSupported] ?? 0
@ -242,6 +244,7 @@ class DeviceProfileBuilder {
case "iPad8,9", "iPad8,10", "iPad8,11", "iPad8,12": return .A12Z
case "iPad11,3", "iPad11,4", "iPad11,6", "iPad11,7": return .A12
case "iPad13,1", "iPad13,2": return .A14
case "iPad13,8,", "iPad13,9", "iPad13,10", "iPad13,11": return .M1
case "AppleTV5,3": return .A8
case "AppleTV6,2": return .A10X
case "AppleTV11,1": return .A12