function _pwa_apple_devices in Progressive Web App 7.2
List all devices to be supported from apple.
See also
https://github.com/onderceylan/pwa-asset-generator/blob/master/src/confi...
2 calls to _pwa_apple_devices()
- pwa_admin_configuration in ./
pwa.admin.inc - Main configuration page for PWA.
- _pwa_apple_splash_screens_meta in includes/
pwa.apple.inc
File
- includes/
pwa.apple.inc, line 178
Code
function _pwa_apple_devices() {
$specs = <<<SPECS
[
{
"device": "12.9\\" iPad Pro",
"portrait": {
"width": 2048,
"height": 2732
},
"landscape": {
"width": 2732,
"height": 2048
},
"scaleFactor": 2
},
{
"device": "11\\" iPad Pro",
"portrait": {
"width": 1668,
"height": 2388
},
"landscape": {
"width": 2388,
"height": 1668
},
"scaleFactor": 2
},
{
"device": "10.5\\" iPad Pro",
"portrait": {
"width": 1668,
"height": 2388
},
"landscape": {
"width": 2388,
"height": 1668
},
"scaleFactor": 2
},
{
"device": "9.7\\" iPad Pro",
"portrait": {
"width": 1536,
"height": 2048
},
"landscape": {
"width": 2048,
"height": 1536
},
"scaleFactor": 2
},
{
"device": "7.9\\" iPad mini",
"portrait": {
"width": 1536,
"height": 2048
},
"landscape": {
"width": 2048,
"height": 1536
},
"scaleFactor": 2
},
{
"device": "10.5\\" iPad Air",
"portrait": {
"width": 1668,
"height": 2224
},
"landscape": {
"width": 2224,
"height": 1668
},
"scaleFactor": 2
},
{
"device": "9.7\\" iPad Air",
"portrait": {
"width": 1536,
"height": 2048
},
"landscape": {
"width": 2048,
"height": 1536
},
"scaleFactor": 2
},
{
"device": "10.2\\" iPad",
"portrait": {
"width": 1620,
"height": 2160
},
"landscape": {
"width": 2160,
"height": 1620
},
"scaleFactor": 2
},
{
"device": "9.7\\" iPad",
"portrait": {
"width": 1536,
"height": 2048
},
"landscape": {
"width": 2048,
"height": 1536
},
"scaleFactor": 2
},
{
"device": "iPhone 11 Pro Max",
"portrait": {
"width": 1242,
"height": 2688
},
"landscape": {
"width": 2688,
"height": 1242
},
"scaleFactor": 3
},
{
"device": "iPhone 11 Pro",
"portrait": {
"width": 1125,
"height": 2436
},
"landscape": {
"width": 2436,
"height": 1125
},
"scaleFactor": 3
},
{
"device": "iPhone 11",
"portrait": {
"width": 828,
"height": 1792
},
"landscape": {
"width": 1792,
"height": 828
},
"scaleFactor": 2
},
{
"device": "iPhone XS Max",
"portrait": {
"width": 1242,
"height": 2688
},
"landscape": {
"width": 2688,
"height": 1242
},
"scaleFactor": 3
},
{
"device": "iPhone XS",
"portrait": {
"width": 1125,
"height": 2436
},
"landscape": {
"width": 2436,
"height": 1125
},
"scaleFactor": 3
},
{
"device": "iPhone XR",
"portrait": {
"width": 828,
"height": 1792
},
"landscape": {
"width": 1792,
"height": 828
},
"scaleFactor": 2
},
{
"device": "iPhone X",
"portrait": {
"width": 1125,
"height": 2436
},
"landscape": {
"width": 2436,
"height": 1125
},
"scaleFactor": 3
},
{
"device": "iPhone 8 Plus",
"portrait": {
"width": 1080,
"height": 1920
},
"landscape": {
"width": 1920,
"height": 1080
},
"scaleFactor": 3
},
{
"device": "iPhone 8",
"portrait": {
"width": 750,
"height": 1334
},
"landscape": {
"width": 1334,
"height": 750
},
"scaleFactor": 2
},
{
"device": "iPhone 7 Plus",
"portrait": {
"width": 1080,
"height": 1920
},
"landscape": {
"width": 1920,
"height": 1080
},
"scaleFactor": 3
},
{
"device": "iPhone 7",
"portrait": {
"width": 750,
"height": 1334
},
"landscape": {
"width": 1334,
"height": 750
},
"scaleFactor": 2
},
{
"device": "iPhone 6s Plus",
"portrait": {
"width": 1080,
"height": 1920
},
"landscape": {
"width": 1920,
"height": 1080
},
"scaleFactor": 3
},
{
"device": "iPhone 6s",
"portrait": {
"width": 750,
"height": 1334
},
"landscape": {
"width": 1334,
"height": 750
},
"scaleFactor": 2
},
{
"device": "iPhone 6 Plus",
"portrait": {
"width": 1080,
"height": 1920
},
"landscape": {
"width": 1920,
"height": 1080
},
"scaleFactor": 3
},
{
"device": "iPhone 6",
"portrait": {
"width": 750,
"height": 1334
},
"landscape": {
"width": 1334,
"height": 750
},
"scaleFactor": 2
},
{
"device": "4.7\\" iPhone SE",
"portrait": {
"width": 750,
"height": 1334
},
"landscape": {
"width": 1334,
"height": 750
},
"scaleFactor": 2
},
{
"device": "4\\" iPhone SE",
"portrait": {
"width": 640,
"height": 1136
},
"landscape": {
"width": 1136,
"height": 640
},
"scaleFactor": 2
}
]
SPECS;
return json_decode($specs);
}