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 missing iPads and Watches #19

Merged
merged 1 commit into from
Feb 28, 2024
Merged
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
44 changes: 43 additions & 1 deletion lib/ios/devices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
require 'ios/devices/model'

module Ios
UNKNOWN_IOS_DEVICE = 'Unknown iOS device'

module Devices
# Gets the official device for the given device type from the iOS devices.
#
Expand Down Expand Up @@ -110,6 +112,8 @@ def self.search(device_type)
Model.new(device_type, 'iPhone 15 Pro Max')
when 'iPad1,1'
Model.new(device_type, 'iPad')
when 'iPad1,2'
Model.new(device_type, 'iPad', '3G')
when 'iPad2,1'
Model.new(device_type, 'iPad 2', 'Wi-Fi')
when 'iPad2,2'
Expand Down Expand Up @@ -236,6 +240,14 @@ def self.search(device_type)
Model.new(device_type, 'iPad Pro 12.9"', '5th gen, Wi-Fi')
when 'iPad13,9', 'iPad13,10', 'iPad13,11'
Model.new(device_type, 'iPad Pro 12.9"', '5th gen, Wi-Fi+LTE')
when 'iPad13,16'
Model.new(device_type, 'iPad Air', '5th gen, Wi-Fi')
when 'iPad13,17'
Model.new(device_type, 'iPad Air', '5th gen, Wi-Fi+LTE')
when 'iPad13,18'
Model.new(device_type, 'iPad', '10th gen, Wi-Fi')
when 'iPad13,19'
Model.new(device_type, 'iPad', '10th gen, Wi-Fi+LTE')
when 'iPad14,1'
Model.new(device_type, 'iPad mini 6', 'Wi-Fi')
when 'iPad14,2'
Expand Down Expand Up @@ -322,8 +334,38 @@ def self.search(device_type)
Model.new(device_type, 'Apple Watch', 'Series 7, 41mm, GPS+Cellular')
when 'Watch6,9'
Model.new(device_type, 'Apple Watch', 'Series 7, 45mm, GPS+Cellular')
when 'Watch6,10'
Model.new(device_type, 'Apple Watch', 'SE 2, 40mm, GPS')
when 'Watch6,10'
Model.new(device_type, 'Apple Watch', 'SE 2, 40mm, GPS')
when 'Watch6,11'
Model.new(device_type, 'Apple Watch', 'SE 2, 44mm, GPS')
when 'Watch6,12'
Model.new(device_type, 'Apple Watch', 'SE 2, 40mm, GPS+Cellular')
when 'Watch6,13'
Model.new(device_type, 'Apple Watch', 'SE 2, 44mm, GPS+Cellular')
when 'Watch6,14'
Model.new(device_type, 'Apple Watch', 'Series 8, 41mm, GPS')
when 'Watch6,15'
Model.new(device_type, 'Apple Watch', 'Series 8, 45mm, GPS')
when 'Watch6,16'
Model.new(device_type, 'Apple Watch', 'Series 8, 41mm, GPS+Cellular')
when 'Watch6,17'
Model.new(device_type, 'Apple Watch', 'Series 8, 45mm, GPS+Cellular')
when 'Watch6,18'
Model.new(device_type, 'Apple Watch', 'Ultra')
when 'Watch7,1'
Model.new(device_type, 'Apple Watch', 'Series 9, 41mm, GPS')
when 'Watch7,2'
Model.new(device_type, 'Apple Watch', 'Series 9, 45mm, GPS')
when 'Watch7,3'
Model.new(device_type, 'Apple Watch', 'Series 9, 41mm, GPS+Cellular')
when 'Watch7,4'
Model.new(device_type, 'Apple Watch', 'Series 9, 45mm, GPS+Cellular')
when 'Watch7,5'
Model.new(device_type, 'Apple Watch', 'Ultra 2')
else
Model.new(device_type, 'Unknown iOS device')
Model.new(device_type, UNKNOWN_IOS_DEVICE)
end
end
end
Expand Down
Loading