Skip to content

Commit

Permalink
feat(ios): add list of new iPhone/iPad models for os module
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Apr 17, 2020
1 parent 19cab05 commit 8839c2c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions common/Resources/ti.internal/extensions/node/os.js
Expand Up @@ -205,6 +205,8 @@ if (isIOS) {
// Now a giant hack for looking up CPU info for OS.cpus() on iOS
// https://www.theiphonewiki.com/wiki/List_of_iPhones
const AppleMap = {
// iPhone SE (2nd gen)
'iPhone12,8': [ 'Apple A13 Bionic @ 2.66 GHz', 2660 ],
// iPhone 11 Pro Max
'iPhone12,5': [ 'Apple A13 Bionic @ 2.66 GHz', 2660 ],
// iPhone 11 Pro
Expand Down Expand Up @@ -268,6 +270,15 @@ if (isIOS) {
// ////// iPads
// https://www.theiphonewiki.com/wiki/List_of_iPads
// https://en.wikipedia.org/wiki/IPad
// iPad Pro (4th gen)
'iPad8,12': [ 'Apple A12Z @ 2.49 GHz', 2490 ],
'iPad8,11': [ 'Apple A12Z @ 2.49 GHz', 2490 ],
// iPad mini (5th gen)
'iPad11,1': [ 'Apple A12 Bionic @ 2.49 GHz', 2490 ],
'iPad11,2': [ 'Apple A12 Bionic @ 2.49 GHz', 2490 ],
// iPad Air (3rd gen)
'iPad11,3': [ 'Apple A12 Bionic @ 2.49 GHz', 2490 ],
'iPad11,4': [ 'Apple A12 Bionic @ 2.49 GHz', 2490 ],
// iPad Pro (12.9" 3rd gen)
'iPad8,8': [ 'Apple A12X @ 2.49 GHz', 2490 ],
'iPad8,7': [ 'Apple A12X @ 2.49 GHz', 2490 ],
Expand All @@ -278,6 +289,9 @@ if (isIOS) {
'iPad8,3': [ 'Apple A12X @ 2.49 GHz', 2490 ],
'iPad8,2': [ 'Apple A12X @ 2.49 GHz', 2490 ],
'iPad8,1': [ 'Apple A12X @ 2.49 GHz', 2490 ],
// iPad (7th gen)
'iPad7,11': [ 'Apple A10 @ 2.31 GHz', 2310 ],
'iPad7,12': [ 'Apple A10 @ 2.31 GHz', 2310 ],
// iPad (6th gen)
'iPad7,6': [ 'Apple A10 @ 2.31 GHz', 2310 ], // FIXME: Wikipedia says 2.34 GHz
'iPad7,5': [ 'Apple A10 @ 2.31 GHz', 2310 ],
Expand Down Expand Up @@ -331,6 +345,8 @@ if (isIOS) {
'iPad2,3': [ 'Apple A5 @ 1 GHz', 1000 ],
'iPad2,2': [ 'Apple A5 @ 1 GHz', 1000 ],
'iPad2,1': [ 'Apple A5 @ 1 GHz', 1000 ],
// iPad 3G
'iPad1,2': [ 'Apple A4 @ 1 GHz', 1000 ],
// iPad
'iPad1,1': [ 'Apple A4 @ 1 GHz', 1000 ],
};
Expand Down

0 comments on commit 8839c2c

Please sign in to comment.