From 58dd81ad0b2297c005c8b3dccba537f804740a3f Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Thu, 13 Jan 2022 15:03:53 -0700 Subject: [PATCH 1/3] 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 From 61d057d5bd854fb5fe5f1b95e97d244c60b3866e Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Thu, 13 Jan 2022 15:04:41 -0700 Subject: [PATCH 2/3] lint --- Shared/Objects/DeviceProfileBuilder.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Shared/Objects/DeviceProfileBuilder.swift b/Shared/Objects/DeviceProfileBuilder.swift index 0ecff83e..b77cacd1 100644 --- a/Shared/Objects/DeviceProfileBuilder.swift +++ b/Shared/Objects/DeviceProfileBuilder.swift @@ -31,7 +31,7 @@ enum CPUModel { case A12Z case A13 case A14 - case M1 + case M1 case A99 } @@ -176,7 +176,7 @@ class DeviceProfileBuilder { .A12Z: 16, .A13: 17, .A14: 18, - .M1: 19, + .M1: 19, .A99: 99, ] return intValues[CPUinfo()] ?? 0 >= intValues[minimumSupported] ?? 0 @@ -244,7 +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 "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 From 21770f1e70321024dadf4e8f932e36ae77806485 Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Thu, 13 Jan 2022 15:40:03 -0700 Subject: [PATCH 3/3] Update DeviceProfileBuilder.swift --- Shared/Objects/DeviceProfileBuilder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/Objects/DeviceProfileBuilder.swift b/Shared/Objects/DeviceProfileBuilder.swift index b77cacd1..2be6e185 100644 --- a/Shared/Objects/DeviceProfileBuilder.swift +++ b/Shared/Objects/DeviceProfileBuilder.swift @@ -244,7 +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 "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