From 58dd81ad0b2297c005c8b3dccba537f804740a3f Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Thu, 13 Jan 2022 15:03:53 -0700 Subject: [PATCH] add M1 --- Shared/Objects/DeviceProfileBuilder.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Shared/Objects/DeviceProfileBuilder.swift b/Shared/Objects/DeviceProfileBuilder.swift index b68d3ccd..0ecff83e 100644 --- a/Shared/Objects/DeviceProfileBuilder.swift +++ b/Shared/Objects/DeviceProfileBuilder.swift @@ -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