Skip to content

Commit

Permalink
added iPhone 14 Pro Max and bumped version 1.9.18-> 1.9.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Hopkins committed Jan 5, 2023
1 parent 1d9886c commit c5cee9a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DeviceUtil_Brainium.podspec
Original file line number Diff line number Diff line change
@@ -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)"
Expand Down
9 changes: 9 additions & 0 deletions Generator/GeneratorDeviceList.plist
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,15 @@
<key>enum</key>
<string>IPHONE_13</string>
</dict>
<key>iPhone15,3</key>
<dict>
<key>version</key>
<real>15.3</real>
<key>name</key>
<string>iPhone 14 Pro Max</string>
<key>enum</key>
<string>IPHONE_14_PRO_MAX</string>
</dict>
<key>iPod1,1</key>
<dict>
<key>version</key>
Expand Down
9 changes: 8 additions & 1 deletion Source/DeviceList.plist
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
<key>name</key>
<string>iPad 10.2-Inch 8th Gen (Wi-Fi/Cellular)</string>
<key>version</key>
<real>11.7</real>
<real>11.699999999999999</real>
</dict>
<key>iPad13,1</key>
<dict>
Expand Down Expand Up @@ -779,6 +779,13 @@
<key>version</key>
<real>14.5</real>
</dict>
<key>iPhone15,3</key>
<dict>
<key>name</key>
<string>iPhone 14 Pro Max</string>
<key>version</key>
<real>15.300000000000001</real>
</dict>
<key>iPhone2,1</key>
<dict>
<key>name</key>
Expand Down
13 changes: 5 additions & 8 deletions Source/DeviceUtil+Constant.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

typedef NS_ENUM(NSUInteger, Hardware) {
NOT_AVAILABLE,


IPHONE_2G,
IPHONE_3G,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions Source/DeviceUtil+Constant.m
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c5cee9a

Please sign in to comment.