Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Air 6,7 and iPad Pro 5,7 #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GBDeviceInfo.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'GBDeviceInfo'
s.version = '7.2.0'
s.version = '7.3.0'
s.summary = 'Detects the hardware, software and display of the current iOS or Mac OS X device at runtime.'
s.author = 'Luka Mirosevic'
s.homepage = 'https://github.com/lmirosevic/GBDeviceInfo'
Expand Down
4 changes: 4 additions & 0 deletions GBDeviceInfo/GBDeviceInfoTypes_iOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ typedef NS_ENUM(NSInteger, GBDeviceModel) {
GBDeviceModeliPadPro12p9Inch5,
GBDeviceModeliPadPro11Inch4,
GBDeviceModeliPadPro12p9Inch6,
GBDeviceModeliPadAir6,
GBDeviceModeliPadAir7,
GBDeviceModeliPadPro11Inch5,
GBDeviceModeliPadPro12p9Inch7,
GBDeviceModeliPod1,
GBDeviceModeliPod2,
GBDeviceModeliPod3,
Expand Down
17 changes: 17 additions & 0 deletions GBDeviceInfo/GBDeviceInfo_iOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,23 @@ + (NSArray *)_modelNuances {
// iPad Pro 6th Gen 12.9-inch, 2022
@[@14, @5]: @[@(GBDeviceModeliPadPro12p9Inch6), @"iPad Pro 6th Gen (12.9 inch, WiFi)", @(GBDeviceDisplay12p9Inch), @264],
@[@14, @6]: @[@(GBDeviceModeliPadPro12p9Inch6), @"iPad Pro 6th Gen (12.9 inch, WiFi+Cellular)", @(GBDeviceDisplay12p9Inch), @264],

// Air 6, 2024
@[@14, @8]: @[@(GBDeviceModeliPadAir6), @"iPad Air 6th Gen (WiFi)", @(GBDeviceDisplay10p9Inch), @264],
@[@14, @9]: @[@(GBDeviceModeliPadAir6), @"iPad Air 6th Gen (WiFi+Cellular)", @(GBDeviceDisplay10p9Inch), @264],

// Air 7, 2024
@[@14, @10]: @[@(GBDeviceModeliPadAir7), @"iPad Air 7th Gen (WiFi)", @(GBDeviceDisplay10p9Inch), @264],
@[@14, @11]: @[@(GBDeviceModeliPadAir7), @"iPad Air 7th Gen (WiFi+Cellular)", @(GBDeviceDisplay10p9Inch), @264],

// iPad Pro 5th Gen 11-inch, 2024
@[@16, @3]: @[@(GBDeviceModeliPadPro11Inch5), @"iPad Pro 5th Gen (11 inch, WiFi)", @(GBDeviceDisplay11Inch), @264],
@[@16, @4]: @[@(GBDeviceModeliPadPro11Inch5), @"iPad Pro 5th Gen (11 inch, WiFi+Cellular)", @(GBDeviceDisplay11Inch), @264],

// iPad Pro 7th Gen 12.9-inch, 2024
@[@16, @5]: @[@(GBDeviceModeliPadPro12p9Inch7), @"iPad Pro 7th Gen (12.9 inch, WiFi)", @(GBDeviceDisplay12p9Inch), @264],
@[@16, @6]: @[@(GBDeviceModeliPadPro12p9Inch7), @"iPad Pro 7th Gen (12.9 inch, WiFi+Cellular)", @(GBDeviceDisplay12p9Inch), @264],

},
@"iPod": @{
// 1st Gen
Expand Down