This commit is contained in:
Jordan Koch 2022-09-17 12:21:12 -04:00
parent b598eba1ba
commit 4596e481fc
2 changed files with 5 additions and 4 deletions

View File

@ -8,7 +8,7 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = 'UIDeviceModelNames' s.name = 'UIDeviceModelNames'
s.version = '0.1.3' s.version = '0.1.4'
s.summary = 'A short description of UIDeviceModelNames.' s.summary = 'A short description of UIDeviceModelNames.'
# This description is used to generate tags and improve search results. # This description is used to generate tags and improve search results.
@ -21,12 +21,12 @@ Pod::Spec.new do |s|
TODO: Add long description of the pod here. TODO: Add long description of the pod here.
DESC DESC
s.homepage = 'https://github.com/Jordan Koch/UIDeviceModelNames' s.homepage = 'https://git.jordanko.ch/eskimo/UIDeviceModelNames'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' } s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Jordan Koch' => 'me@jordanko.ch' } s.author = { 'Jordan Koch' => 'me@jordanko.ch' }
s.source = { :git => 'https://github.com/Jordan Koch/UIDeviceModelNames.git', :tag => s.version.to_s } s.source = { :git => 'https://git.jordanko.ch/eskimo/UIDeviceModelNames.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>' s.social_media_url = 'https://twitter.com/eskimo_dev'
s.ios.deployment_target = '8.0' s.ios.deployment_target = '8.0'

View File

@ -93,6 +93,7 @@ public class UIDeviceModelNames {
case "iPad5,3", "iPad5,4": return "iPad Air 2" case "iPad5,3", "iPad5,4": return "iPad Air 2"
case "iPad11,3", "iPad11,4": return "iPad Air (3rd generation)" case "iPad11,3", "iPad11,4": return "iPad Air (3rd generation)"
case "iPad13,1", "iPad13,2": return "iPad Air (4th generation)" case "iPad13,1", "iPad13,2": return "iPad Air (4th generation)"
case "iPad13,16", "iPad13,17": return "iPad Air (5th generation)"
case "iPad6,3", "iPad6,4": return "iPad Pro (9.7-inch)" case "iPad6,3", "iPad6,4": return "iPad Pro (9.7-inch)"
case "iPad7,3", "iPad7,4": return "iPad Pro (10.5-inch)" case "iPad7,3", "iPad7,4": return "iPad Pro (10.5-inch)"