From c5cee9a6e931060d622bdf77dd5257438a06a00c Mon Sep 17 00:00:00 2001 From: Simon Hopkins <> Date: Wed, 4 Jan 2023 16:01:49 -0800 Subject: [PATCH] added iPhone 14 Pro Max and bumped version 1.9.18-> 1.9.19 --- DeviceUtil_Brainium.podspec | 2 +- Generator/GeneratorDeviceList.plist | 9 +++++++++ Source/DeviceList.plist | 9 ++++++++- Source/DeviceUtil+Constant.h | 13 +++++-------- Source/DeviceUtil+Constant.m | 2 ++ 5 files changed, 25 insertions(+), 10 deletions(-) diff --git a/DeviceUtil_Brainium.podspec b/DeviceUtil_Brainium.podspec index 6a9541a..cf2bfad 100644 --- a/DeviceUtil_Brainium.podspec +++ b/DeviceUtil_Brainium.podspec @@ -1,7 +1,7 @@ # read for development information https://guides.cocoapods.org/making/making-a-cocoapod.html Pod::Spec.new do |s| s.name = "DeviceUtil_Brainium" - s.version = "1.9.18" + s.version = "1.9.19" s.summary = "DeviceUtil helps identifying the exact harware type of the device. e.g. iPhone 6 or iPhone 6s." s.homepage = "https://github.com/BrainiumLLC/DeviceUtil.git" s.license = "MIT (example)" diff --git a/Generator/GeneratorDeviceList.plist b/Generator/GeneratorDeviceList.plist index aeb916d..9811414 100644 --- a/Generator/GeneratorDeviceList.plist +++ b/Generator/GeneratorDeviceList.plist @@ -398,6 +398,15 @@ enum IPHONE_13 + iPhone15,3 + + version + 15.3 + name + iPhone 14 Pro Max + enum + IPHONE_14_PRO_MAX + iPod1,1 version diff --git a/Source/DeviceList.plist b/Source/DeviceList.plist index 507713f..6e0dece 100644 --- a/Source/DeviceList.plist +++ b/Source/DeviceList.plist @@ -231,7 +231,7 @@ name iPad 10.2-Inch 8th Gen (Wi-Fi/Cellular) version - 11.7 + 11.699999999999999 iPad13,1 @@ -779,6 +779,13 @@ version 14.5 + iPhone15,3 + + name + iPhone 14 Pro Max + version + 15.300000000000001 + iPhone2,1 name diff --git a/Source/DeviceUtil+Constant.h b/Source/DeviceUtil+Constant.h index 2a4b736..c5a87a4 100644 --- a/Source/DeviceUtil+Constant.h +++ b/Source/DeviceUtil+Constant.h @@ -1,6 +1,6 @@ typedef NS_ENUM(NSUInteger, Hardware) { - NOT_AVAILABLE, + IPHONE_2G, IPHONE_3G, @@ -45,6 +45,7 @@ typedef NS_ENUM(NSUInteger, Hardware) { IPHONE_13_PRO_MAX, IPHONE_13_MINI, IPHONE_13, + IPHONE_14_PRO_MAX, IPOD_TOUCH_1G, IPOD_TOUCH_2G, @@ -95,8 +96,8 @@ typedef NS_ENUM(NSUInteger, Hardware) { IPAD_PRO_105_WIFI_CELLULAR, IPAD_6_WIFI, IPAD_6_WIFI_CELLULAR, - IPAD_PRO_11_2G_WIFI_CELLULAR, IPAD_PRO_11_WIFI, + IPAD_PRO_11_2G_WIFI_CELLULAR, IPAD_PRO_4G_WIFI, IPAD_PRO_11_1TB_WIFI, IPAD_PRO_11_WIFI_CELLULAR, @@ -143,12 +144,7 @@ typedef NS_ENUM(NSUInteger, Hardware) { APPLE_TV_4K, SIMULATOR, - UNKNOWN, - - HARDWARE_MAX, - - // Brainium backwards compatibility - IPAD_1 = IPAD, + UNKNOWN }; extern NSString* const AppleTV1_1; @@ -262,6 +258,7 @@ extern NSString* const iPhone14_2; extern NSString* const iPhone14_3; extern NSString* const iPhone14_4; extern NSString* const iPhone14_5; +extern NSString* const iPhone15_3; extern NSString* const iPhone2_1; extern NSString* const iPhone3_1; extern NSString* const iPhone3_2; diff --git a/Source/DeviceUtil+Constant.m b/Source/DeviceUtil+Constant.m index 029bef6..3cf6edc 100644 --- a/Source/DeviceUtil+Constant.m +++ b/Source/DeviceUtil+Constant.m @@ -112,6 +112,7 @@ NSString* const iPhone14_3 = @"iPhone14,3"; NSString* const iPhone14_4 = @"iPhone14,4"; NSString* const iPhone14_5 = @"iPhone14,5"; +NSString* const iPhone15_3 = @"iPhone15,3"; NSString* const iPhone2_1 = @"iPhone2,1"; NSString* const iPhone3_1 = @"iPhone3,1"; NSString* const iPhone3_2 = @"iPhone3,2"; @@ -257,6 +258,7 @@ - (Hardware)hardware { if ([hardware isEqualToString:iPhone14_3]) return IPHONE_13_PRO_MAX; if ([hardware isEqualToString:iPhone14_4]) return IPHONE_13_MINI; if ([hardware isEqualToString:iPhone14_5]) return IPHONE_13; + if ([hardware isEqualToString:iPhone15_3]) return IPHONE_14_PRO_MAX; if ([hardware isEqualToString:iPhone2_1]) return IPHONE_3GS; if ([hardware isEqualToString:iPhone3_1]) return IPHONE_4; if ([hardware isEqualToString:iPhone3_2]) return IPHONE_4;