From 0d9ed045180f5b1adceea9c814283fa202455769 Mon Sep 17 00:00:00 2001 From: Harold Thetiot Date: Tue, 30 Jan 2018 11:57:03 -0800 Subject: [PATCH 1/2] add missing ios screen sizes --- index.js | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index 5f15206..79f98a4 100644 --- a/index.js +++ b/index.js @@ -37,19 +37,29 @@ var getPlatforms = function (projectName) { splashPath : 'platforms/ios/' + projectName + xcodeFolder, splash : [ // iPhone - { name: 'Default~iphone.png', width: 320, height: 480 }, - { name: 'Default@2x~iphone.png', width: 640, height: 960 }, - { name: 'Default-568h@2x~iphone.png', width: 640, height: 1136 }, - { name: 'Default-667h.png', width: 750, height: 1334 }, - { name: 'Default-736h.png', width: 1242, height: 2208 }, - { name: 'Default-Landscape-736h.png', width: 2208, height: 1242 }, - { name: 'Default-2436h.png', width: 1125, height: 2436 }, - { name: 'Default-Landscape-2436h.png', width: 2436, height: 1125 }, + { name: 'Default-568h@2x~iphone.png', width: 640, height: 1136 }, + { name: 'Default-667h.png', width: 750, height: 1334 }, + { name: 'Default-736h.png', width: 1242, height: 2208 }, + { name: 'Default-Landscape-736h.png', width: 2208, height: 1242 }, + { name: 'Default@2x~iphone.png', width: 640, height: 960 }, + { name: 'Default~iphone.png', width: 320, height: 480 }, + { name: 'Default-Portrait~iphone.png', width: 320, height: 480 }, + { name: 'Default-Portrait@2x~iphone.png', width: 640, height: 960 }, + { name: 'Default-Portrait-568h@2x~iphone.png', width: 640, height: 1136 }, + { name: 'Default-Portrait-667h@2x~iphone.png', width: 750, height: 1334 }, + { name: 'Default-Portrait-736h@3x~iphone.png', width: 1242, height: 2208 }, + { name: 'Default-Landscape~iphone.png', width: 480, height: 320 }, + { name: 'Default-Landscape@2x~iphone.png', width: 960, height: 640 }, + { name: 'Default-Landscape-568h@2x~iphone.png', width: 1136, height: 640 }, + { name: 'Default-Landscape-667h@2x~iphone.png', width: 1334, height: 750 }, + { name: 'Default-Landscape-736h@3x~iphone.png', width: 2208, height: 1242 }, // iPad - { name: 'Default-Portrait~ipad.png', width: 768, height: 1024 }, - { name: 'Default-Portrait@2x~ipad.png', width: 1536, height: 2048 }, - { name: 'Default-Landscape~ipad.png', width: 1024, height: 768 }, - { name: 'Default-Landscape@2x~ipad.png', width: 2048, height: 1536 } + { name: 'Default-Portrait~ipad.png', width: 768, height: 1024 }, + { name: 'Default-Portrait@2x~ipad.png', width: 1536, height: 2048 }, + { name: 'Default-Portrait@2x~ipad-pro.png', width: 2048, height: 2732 }, + { name: 'Default-Landscape~ipad.png', width: 1024, height: 768 }, + { name: 'Default-Landscape@2x~ipad.png', width: 2048, height: 1536 }, + { name: 'Default-Landscape@2x~ipad-pro.png', width: 2732, height: 2048 } ] }); platforms.push({ From 1443020b54b5c7e32c9238a9e44dbe026e2837da Mon Sep 17 00:00:00 2001 From: Harold Thetiot Date: Tue, 30 Jan 2018 12:00:22 -0800 Subject: [PATCH 2/2] restore ios 2436h size --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 79f98a4..e310a24 100644 --- a/index.js +++ b/index.js @@ -41,6 +41,8 @@ var getPlatforms = function (projectName) { { name: 'Default-667h.png', width: 750, height: 1334 }, { name: 'Default-736h.png', width: 1242, height: 2208 }, { name: 'Default-Landscape-736h.png', width: 2208, height: 1242 }, + { name: 'Default-2436h.png', width: 1125, height: 2436 }, + { name: 'Default-Landscape-2436h.png', width: 2436, height: 1125 }, { name: 'Default@2x~iphone.png', width: 640, height: 960 }, { name: 'Default~iphone.png', width: 320, height: 480 }, { name: 'Default-Portrait~iphone.png', width: 320, height: 480 },