Skip to content
This repository has been archived by the owner on Apr 6, 2019. It is now read-only.

Commit

Permalink
Add 2019 iPad Air and iPad mini
Browse files Browse the repository at this point in the history
  • Loading branch information
dieulot committed Mar 18, 2019
1 parent 4a5e8bf commit c6fccab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions idevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ var iDevice = (function() {
if (s == '375x812' || s == '414x896') {
return 'iPhone XR'
}
if (s == '834x1112') {
return 'iPad Air (2019)'
}
if (s == '768x1024') {
return 'iPad mini (2019)'
}
}
if (dpr == 3) {
if (s == '375x812') {
Expand Down
2 changes: 2 additions & 0 deletions tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ test('iPad Pro 10.5" (2017)', 'Apple A10X GPU', 834, 1112, 2)
test('iPad (2018)', 'Apple A10 GPU', 768, 1024, 2)
test('iPad Pro 11" (2018)', 'Apple A12X GPU', 834, 1194, 2)
test('iPad Pro 12.9" (2018)', 'Apple A12X GPU', 1024, 1366, 2)
test('iPad Air (2019)', 'Apple A12 GPU', 834, 1112, 2)
test('iPad mini (2019)', 'Apple A12 GPU', 768, 1024, 2)

test('iPod Touch 5', 'PowerVR SGX 543', 320, 568, 2, 'Mozilla/5.0 (iPod touch; ...')
test('iPod Touch 6', 'Apple A8 GPU', 320, 568, 2, 'Mozilla/5.0 (iPod touch; ...')
Expand Down

0 comments on commit c6fccab

Please sign in to comment.