Last active
April 7, 2016 02:22
-
-
Save kamermans/bd452c5200825bb8ca4a to your computer and use it in GitHub Desktop.
Apple UIDeviceHardware platformString Map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Sources: | |
* https://github.com/erica/uidevice-extension/blob/master/UIDevice-Hardware.m | |
* https://github.com/squarefrog/UIDeviceIdentifier/blob/master/UIDeviceIdentifier/UIDeviceHardware.m | |
* http://theiphonewiki.com/wiki/Models | |
* http://www.everymac.com/systems/apple/iphone/specs/apple-iphone-5c-a1529-asia-pacific-australia-specs.html | |
* https://www.apple.com/ipad/LTE/ | |
* http://www.enterpriseios.com/device/iPhone6,1 | |
* http://stackoverflow.com/questions/12505414/whats-the-device-code-platform-string-for-iphone-5-5c-5s-ipod-touch-5 | |
*/ | |
return array ( | |
'iPhone1,1' => 'iPhone 2G', | |
'iPhone1,2' => 'iPhone 3G', | |
'iPhone2,1' => 'iPhone 3GS', | |
'iPhone3,1' => 'iPhone 4 (GSM)', | |
'iPhone3,2' => 'iPhone 4 (8GB)', | |
'iPhone3,3' => 'iPhone 4 (CDMA)', | |
'iPhone4,1' => 'iPhone 4S', | |
'iPhone5,1' => 'iPhone 5 (GSM)', | |
'iPhone5,2' => 'iPhone 5 (GSM+CDMA)', | |
'iPhone5,3' => 'iPhone 5C (GSM)', | |
'iPhone5,4' => 'iPhone 5C (GSM+CDMA)', | |
'iPhone6,1' => 'iPhone 5S (GSM)', | |
'iPhone6,2' => 'iPhone 5S (GSM+CDMA)', | |
'iPod1,1' => 'iPod Touch 1st Gen', | |
'iPod2,1' => 'iPod Touch 2nd Gen', | |
'iPod2,2' => 'iPod Touch 2nd Gen', | |
'iPod2,3' => 'iPod Touch 2nd Gen', | |
'iPod2,4' => 'iPod Touch 2nd Gen', | |
'iPod3,1' => 'iPod Touch 3rd Gen', | |
'iPod4,1' => 'iPod Touch 4th Gen', | |
'iPod5,1' => 'iPod Touch 5th Gen', | |
'iPad1,1' => 'iPad 1', | |
'iPad2,1' => 'iPad 2', | |
'iPad2,2' => 'iPad 2 (GSM)', | |
'iPad2,3' => 'iPad 2 (GSM+CDMA)', | |
'iPad2,4' => 'iPad 2', | |
'iPad2,5' => 'iPad Mini', | |
'iPad2,6' => 'iPad Mini (GSM)', | |
'iPad2,7' => 'iPad Mini (GSM+CDMA)', | |
'iPad3,1' => 'iPad 3', | |
'iPad3,2' => 'iPad 3 (GSM)', | |
'iPad3,3' => 'iPad 3 (GSM+CDMA)', | |
'iPad3,4' => 'iPad 4', | |
'iPad3,5' => 'iPad 4 (GSM)', | |
'iPad3,6' => 'iPad 4 (GSM+CDMA)', | |
'iPad4,1' => 'iPad Air', | |
'iPad4,2' => 'iPad Air (GSM+CDMA)', | |
'iPad4,3' => 'iPad Air (Intl GSM)', | |
'iPad4,4' => 'iPad Mini Retina', | |
'iPad4,5' => 'iPad Mini Retina (GSM+CDMA)', | |
'iPad4,6' => 'iPad Mini Retina (Intl GSM)', | |
'AppleTV2,1'=> 'AppleTV 2', | |
'AppleTV3,1'=> 'AppleTV 3', | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For an updated version, please see my new Gist: https://gist.github.com/kamermans/698af6d22d1fc539a249265a41634bdc