You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2020/06/17 05:23:52 UTC
[cordova-ios] branch master updated: (iOS) Dark mode splashscreen
storyboard images (#808)
This is an automated email from the ASF dual-hosted git repository.
dpogue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push:
new 55ee692 (iOS) Dark mode splashscreen storyboard images (#808)
55ee692 is described below
commit 55ee692c57f1e575b2577c7149a0ff1b305e1679
Author: Terren <11...@users.noreply.github.com>
AuthorDate: Tue Jun 16 22:23:39 2020 -0700
(iOS) Dark mode splashscreen storyboard images (#808)
* Add support for dark and light storyboard image appearances
Check for ~dark and ~light suffixes, and include in Contents.json.
* make eslint happy
* make eslint happy again
* Update prepare.js tests, add 3 new ones for themed storyboards
---
bin/templates/scripts/cordova/lib/prepare.js | 71 +-
.../contents-json/empty.js | 642 ++++++++++++++++-
.../contents-json/single-2xanyany.js | 642 ++++++++++++++++-
.../contents-json/typical-universal.js | 642 ++++++++++++++++-
.../contents-json/varied-device-and-theme.js | 792 +++++++++++++++++++++
.../contents-json/varied-device.js | 642 ++++++++++++++++-
.../contents-map/empty-map.js | 448 ++++++++++++
.../contents-map/single-2xanyany-map.js | 448 ++++++++++++
.../contents-map/typical-universal-map.js | 448 ++++++++++++
.../contents-map/varied-device-and-theme-map.js | 693 ++++++++++++++++++
.../contents-map/varied-device-map.js | 448 ++++++++++++
tests/spec/unit/prepare.spec.js | 56 ++
12 files changed, 5939 insertions(+), 33 deletions(-)
diff --git a/bin/templates/scripts/cordova/lib/prepare.js b/bin/templates/scripts/cordova/lib/prepare.js
index 5758ec2..ee2ac71 100644
--- a/bin/templates/scripts/cordova/lib/prepare.js
+++ b/bin/templates/scripts/cordova/lib/prepare.js
@@ -648,7 +648,8 @@ function cleanFileResources (projectRoot, projectConfig, locations) {
* height: 'any|com',
* filename: undefined|'Default@scale~idiom~widthheight.png',
* src: undefined|'path/to/original/matched/image/from/splash/screens.png',
- * target: undefined|'path/to/asset/library/Default@scale~idiom~widthheight.png'
+ * target: undefined|'path/to/asset/library/Default@scale~idiom~widthheight.png',
+ * appearence: undefined|'dark'|'light'
* }, ...
* ]
*
@@ -665,39 +666,46 @@ function mapLaunchStoryboardContents (splashScreens, launchStoryboardImagesDir)
iphone: ['1x', '2x', '3x']
};
const sizes = ['com', 'any'];
+ const appearences = ['', 'dark', 'light'];
idioms.forEach(idiom => {
scalesForIdiom[idiom].forEach(scale => {
sizes.forEach(width => {
sizes.forEach(height => {
- const item = { idiom, scale, width, height };
-
- /* examples of the search pattern:
- * scale ~ idiom ~ width height
- * @2x ~ universal ~ any any
- * @3x ~ iphone ~ com any
- * @2x ~ ipad ~ com any
- */
- const searchPattern = `@${scale}~${idiom}~${width}${height}`;
-
- /* because old node versions don't have Array.find, the below is
- * functionally equivalent to this:
- * var launchStoryboardImage = splashScreens.find(function(item) {
- * return item.src.indexOf(searchPattern) >= 0;
- * });
- */
- const launchStoryboardImage = splashScreens.reduce(
- (p, c) => (c.src.indexOf(searchPattern) >= 0) ? c : p,
- undefined
- );
-
- if (launchStoryboardImage) {
- item.filename = `Default${searchPattern}.png`;
- item.src = launchStoryboardImage.src;
- item.target = path.join(launchStoryboardImagesDir, item.filename);
- }
-
- platformLaunchStoryboardImages.push(item);
+ appearences.forEach(appearence => {
+ const item = { idiom, scale, width, height };
+
+ if (appearence !== '') {
+ item.appearence = appearence;
+ }
+
+ /* examples of the search pattern:
+ * scale ~ idiom ~ width height ~ appearence
+ * @2x ~ universal ~ any any
+ * @3x ~ iphone ~ com any ~ dark
+ * @2x ~ ipad ~ com any ~ light
+ */
+ const searchPattern = '@' + scale + '~' + idiom + '~' + width + height + (appearence ? '~' + appearence : '');
+
+ /* because old node versions don't have Array.find, the below is
+ * functionally equivalent to this:
+ * var launchStoryboardImage = splashScreens.find(function(item) {
+ * return (item.src.indexOf(searchPattern) >= 0) ? (appearence !== '' ? true : ((item.src.indexOf(searchPattern + '~light') >= 0 || (item.src.indexOf(searchPattern + '~dark') >= 0)) ? false : true)) : false;
+ * });
+ */
+ const launchStoryboardImage = splashScreens.reduce(
+ (p, c) => (c.src.indexOf(searchPattern) >= 0) ? (appearence !== '' ? c : ((c.src.indexOf(searchPattern + '~light') >= 0 || (c.src.indexOf(searchPattern + '~dark') >= 0)) ? p : c)) : p,
+ undefined
+ );
+
+ if (launchStoryboardImage) {
+ item.filename = `Default${searchPattern}.png`;
+ item.src = launchStoryboardImage.src;
+ item.target = path.join(launchStoryboardImagesDir, item.filename);
+ }
+
+ platformLaunchStoryboardImages.push(item);
+ });
});
});
});
@@ -743,6 +751,7 @@ function mapLaunchStoryboardResources (splashScreens, launchStoryboardImagesDir)
* scale: '1x|2x|3x',
* width-class: undefined|'compact',
* height-class: undefined|'compact'
+ * ...
* }, ...
* ],
* info: {
@@ -782,6 +791,10 @@ function getLaunchStoryboardContentsJSON (splashScreens, launchStoryboardImagesD
newItem['height-class'] = IMAGESET_COMPACT_SIZE_CLASS;
}
+ if (item.appearence) {
+ newItem['appearances'] = [{ appearance: 'luminosity', value: item.appearence }];
+ }
+
// Xcode doesn't want a filename property if there's no image for these traits
if (item.filename) {
newItem.filename = item.filename;
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/empty.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/empty.js
index 627bc39..dcb0a65 100644
--- a/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/empty.js
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/empty.js
@@ -3,7 +3,29 @@ module.exports = {
'idiom': 'universal',
'scale': '1x',
'width-class': 'compact',
- 'height-class': 'compact'
+ 'height-class': 'compact',
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
}, {
'idiom': 'universal',
'scale': '1x',
@@ -11,43 +33,261 @@ module.exports = {
}, {
'idiom': 'universal',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '1x'
}, {
'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'universal',
'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
'width-class': 'compact'
}, {
'idiom': 'universal',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'universal',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '2x'
}, {
'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '3x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'universal',
'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
'width-class': 'compact'
}, {
'idiom': 'universal',
'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
'height-class': 'compact'
}, {
'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '3x'
}, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
'idiom': 'ipad',
'scale': '1x',
'width-class': 'compact',
@@ -55,31 +295,191 @@ module.exports = {
}, {
'idiom': 'ipad',
'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'width-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '1x'
}, {
'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'width-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '2x'
}, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
'idiom': 'iphone',
'scale': '1x',
'width-class': 'compact',
@@ -87,46 +487,286 @@ module.exports = {
}, {
'idiom': 'iphone',
'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '1x'
}, {
'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '2x'
}, {
'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '3x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '3x'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
}],
'info': {
'author': 'Xcode',
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/single-2xanyany.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/single-2xanyany.js
index 9485e81..c021670 100644
--- a/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/single-2xanyany.js
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/single-2xanyany.js
@@ -3,7 +3,29 @@ module.exports = {
'idiom': 'universal',
'scale': '1x',
'width-class': 'compact',
- 'height-class': 'compact'
+ 'height-class': 'compact',
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
}, {
'idiom': 'universal',
'scale': '1x',
@@ -11,44 +33,262 @@ module.exports = {
}, {
'idiom': 'universal',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '1x'
}, {
'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'universal',
'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
'width-class': 'compact'
}, {
'idiom': 'universal',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'universal',
'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
'filename': 'Default@2x~universal~anyany.png'
}, {
'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '3x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'universal',
'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
'width-class': 'compact'
}, {
'idiom': 'universal',
'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
'height-class': 'compact'
}, {
'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '3x'
}, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
'idiom': 'ipad',
'scale': '1x',
'width-class': 'compact',
@@ -56,31 +296,191 @@ module.exports = {
}, {
'idiom': 'ipad',
'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'width-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '1x'
}, {
'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'width-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '2x'
}, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
'idiom': 'iphone',
'scale': '1x',
'width-class': 'compact',
@@ -88,46 +488,286 @@ module.exports = {
}, {
'idiom': 'iphone',
'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '1x'
}, {
'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '2x'
}, {
'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '3x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '3x'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
}],
'info': {
'author': 'Xcode',
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/typical-universal.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/typical-universal.js
index 3a9b96b..1fc4184 100644
--- a/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/typical-universal.js
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/typical-universal.js
@@ -3,7 +3,29 @@ module.exports = {
'idiom': 'universal',
'scale': '1x',
'width-class': 'compact',
- 'height-class': 'compact'
+ 'height-class': 'compact',
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
}, {
'idiom': 'universal',
'scale': '1x',
@@ -11,12 +33,70 @@ module.exports = {
}, {
'idiom': 'universal',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '1x'
}, {
'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact',
@@ -25,17 +105,97 @@ module.exports = {
'idiom': 'universal',
'scale': '2x',
'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
'filename': 'Default@2x~universal~comany.png'
}, {
'idiom': 'universal',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'universal',
'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
'filename': 'Default@2x~universal~anyany.png'
}, {
'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '3x',
'width-class': 'compact',
'height-class': 'compact'
@@ -43,17 +203,97 @@ module.exports = {
'idiom': 'universal',
'scale': '3x',
'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
'filename': 'Default@3x~universal~comany.png'
}, {
'idiom': 'universal',
'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
'height-class': 'compact',
'filename': 'Default@3x~universal~anycom.png'
}, {
'idiom': 'universal',
'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
'filename': 'Default@3x~universal~anyany.png'
}, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
'idiom': 'ipad',
'scale': '1x',
'width-class': 'compact',
@@ -61,31 +301,191 @@ module.exports = {
}, {
'idiom': 'ipad',
'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'width-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '1x'
}, {
'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'width-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '2x'
}, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
'idiom': 'iphone',
'scale': '1x',
'width-class': 'compact',
@@ -93,46 +493,286 @@ module.exports = {
}, {
'idiom': 'iphone',
'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '1x'
}, {
'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '2x'
}, {
'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '3x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '3x'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
}],
'info': {
'author': 'Xcode',
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/varied-device-and-theme.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/varied-device-and-theme.js
new file mode 100644
index 0000000..3e87065
--- /dev/null
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/varied-device-and-theme.js
@@ -0,0 +1,792 @@
+module.exports = {
+ 'images': [{
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'filename': 'Default@2x~universal~comcom.png'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'filename': 'Default@2x~universal~comcom~light.png',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'filename': 'Default@2x~universal~comany.png'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'filename': 'Default@2x~universal~comany~dark.png',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'filename': 'Default@2x~universal~anyany.png'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x'
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact'
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x'
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'filename': 'Default@2x~ipad~comcom.png'
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'filename': 'Default@2x~ipad~comcom~dark.png',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'filename': 'Default@2x~ipad~comcom~light.png',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'filename': 'Default@2x~ipad~comany.png'
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'filename': 'Default@2x~ipad~anyany.png'
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'filename': 'Default@2x~ipad~anyany~dark.png',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'filename': 'Default@2x~ipad~anyany~light.png',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'filename': 'Default@3x~iphone~comany.png'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'filename': 'Default@3x~iphone~comany~light.png',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'filename': 'Default@3x~iphone~anycom.png'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'filename': 'Default@3x~iphone~anyany.png'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'filename': 'Default@3x~iphone~anyany~dark.png',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }],
+ 'info': {
+ 'author': 'Xcode',
+ 'version': 1
+ }
+};
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/varied-device.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/varied-device.js
index 6f1e27a..d1a859d 100644
--- a/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/varied-device.js
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-json/varied-device.js
@@ -3,7 +3,29 @@ module.exports = {
'idiom': 'universal',
'scale': '1x',
'width-class': 'compact',
- 'height-class': 'compact'
+ 'height-class': 'compact',
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
}, {
'idiom': 'universal',
'scale': '1x',
@@ -11,12 +33,70 @@ module.exports = {
}, {
'idiom': 'universal',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '1x'
}, {
'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact',
@@ -25,32 +105,192 @@ module.exports = {
'idiom': 'universal',
'scale': '2x',
'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
'filename': 'Default@2x~universal~comany.png'
}, {
'idiom': 'universal',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'universal',
'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
'filename': 'Default@2x~universal~anyany.png'
}, {
'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '3x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'universal',
'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
'width-class': 'compact'
}, {
'idiom': 'universal',
'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
'height-class': 'compact'
}, {
'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
'scale': '3x'
}, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
'idiom': 'ipad',
'scale': '1x',
'width-class': 'compact',
@@ -58,16 +298,96 @@ module.exports = {
}, {
'idiom': 'ipad',
'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'width-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '1x'
}, {
'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact',
@@ -76,16 +396,96 @@ module.exports = {
'idiom': 'ipad',
'scale': '2x',
'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
'filename': 'Default@2x~ipad~comany.png'
}, {
'idiom': 'ipad',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'ipad',
'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'filename': 'Default@2x~ipad~anyany.png'
}, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
'idiom': 'iphone',
'scale': '1x',
'width-class': 'compact',
@@ -93,32 +493,192 @@ module.exports = {
}, {
'idiom': 'iphone',
'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '1x'
}, {
'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '2x',
'width-class': 'compact',
'height-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'width-class': 'compact'
}, {
'idiom': 'iphone',
'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'height-class': 'compact'
}, {
'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '2x'
}, {
'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
'scale': '3x',
'width-class': 'compact',
'height-class': 'compact'
@@ -126,16 +686,96 @@ module.exports = {
'idiom': 'iphone',
'scale': '3x',
'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
'filename': 'Default@3x~iphone~comany.png'
}, {
'idiom': 'iphone',
'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'height-class': 'compact',
'filename': 'Default@3x~iphone~anycom.png'
}, {
'idiom': 'iphone',
'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'height-class': 'compact',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'filename': 'Default@3x~iphone~anyany.png'
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'dark'
+ }
+ ]
+ }, {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'appearances': [
+ {
+ 'appearance': 'luminosity',
+ 'value': 'light'
+ }
+ ]
}],
'info': {
'author': 'Xcode',
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/empty-map.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/empty-map.js
index a81c5b6..e3095db 100644
--- a/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/empty-map.js
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/empty-map.js
@@ -9,11 +9,39 @@ module.exports = [
'idiom': 'universal',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'universal',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -21,10 +49,38 @@ module.exports = [
'idiom': 'universal',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
'scale': '2x',
'width': 'com',
'height': 'com'
@@ -33,11 +89,39 @@ module.exports = [
'idiom': 'universal',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'universal',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -45,10 +129,38 @@ module.exports = [
'idiom': 'universal',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
'scale': '3x',
'width': 'com',
'height': 'com'
@@ -57,11 +169,39 @@ module.exports = [
'idiom': 'universal',
'scale': '3x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'universal',
'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
'width': 'any',
'height': 'com'
},
@@ -69,9 +209,37 @@ module.exports = [
'idiom': 'universal',
'scale': '3x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
'height': 'any'
},
{
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
'idiom': 'ipad',
'scale': '1x',
'width': 'com',
@@ -81,11 +249,39 @@ module.exports = [
'idiom': 'ipad',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'ipad',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -93,10 +289,38 @@ module.exports = [
'idiom': 'ipad',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
'scale': '2x',
'width': 'com',
'height': 'com'
@@ -105,11 +329,39 @@ module.exports = [
'idiom': 'ipad',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'ipad',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -117,9 +369,37 @@ module.exports = [
'idiom': 'ipad',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any'
},
{
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
'idiom': 'iphone',
'scale': '1x',
'width': 'com',
@@ -129,11 +409,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -141,10 +449,38 @@ module.exports = [
'idiom': 'iphone',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
'scale': '2x',
'width': 'com',
'height': 'com'
@@ -153,11 +489,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -165,10 +529,38 @@ module.exports = [
'idiom': 'iphone',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
'scale': '3x',
'width': 'com',
'height': 'com'
@@ -177,11 +569,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '3x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'width': 'any',
'height': 'com'
},
@@ -189,6 +609,34 @@ module.exports = [
'idiom': 'iphone',
'scale': '3x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
'height': 'any'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
}
];
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/single-2xanyany-map.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/single-2xanyany-map.js
index 54d98b5..5da4c31 100644
--- a/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/single-2xanyany-map.js
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/single-2xanyany-map.js
@@ -9,11 +9,39 @@ module.exports = [
'idiom': 'universal',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'universal',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -21,10 +49,38 @@ module.exports = [
'idiom': 'universal',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
'scale': '2x',
'width': 'com',
'height': 'com'
@@ -33,11 +89,39 @@ module.exports = [
'idiom': 'universal',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'universal',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -45,6 +129,20 @@ module.exports = [
'idiom': 'universal',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any',
'filename': 'Default@2x~universal~anyany.png',
'src': 'res/splash/ios/Default@2x~universal~anyany.png',
@@ -52,6 +150,20 @@ module.exports = [
},
{
'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
'scale': '3x',
'width': 'com',
'height': 'com'
@@ -60,11 +172,39 @@ module.exports = [
'idiom': 'universal',
'scale': '3x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'universal',
'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
'width': 'any',
'height': 'com'
},
@@ -72,9 +212,37 @@ module.exports = [
'idiom': 'universal',
'scale': '3x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
'height': 'any'
},
{
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
'idiom': 'ipad',
'scale': '1x',
'width': 'com',
@@ -84,11 +252,39 @@ module.exports = [
'idiom': 'ipad',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'ipad',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -96,10 +292,38 @@ module.exports = [
'idiom': 'ipad',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
'scale': '2x',
'width': 'com',
'height': 'com'
@@ -108,11 +332,39 @@ module.exports = [
'idiom': 'ipad',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'ipad',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -120,9 +372,37 @@ module.exports = [
'idiom': 'ipad',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any'
},
{
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
'idiom': 'iphone',
'scale': '1x',
'width': 'com',
@@ -132,11 +412,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -144,10 +452,38 @@ module.exports = [
'idiom': 'iphone',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
'scale': '2x',
'width': 'com',
'height': 'com'
@@ -156,11 +492,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -168,10 +532,38 @@ module.exports = [
'idiom': 'iphone',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
'scale': '3x',
'width': 'com',
'height': 'com'
@@ -180,11 +572,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '3x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'width': 'any',
'height': 'com'
},
@@ -192,6 +612,34 @@ module.exports = [
'idiom': 'iphone',
'scale': '3x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
'height': 'any'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
}
];
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/typical-universal-map.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/typical-universal-map.js
index e571a09..8e57b4b 100644
--- a/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/typical-universal-map.js
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/typical-universal-map.js
@@ -9,11 +9,39 @@ module.exports = [
'idiom': 'universal',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'universal',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -21,10 +49,38 @@ module.exports = [
'idiom': 'universal',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
'scale': '2x',
'width': 'com',
'height': 'com',
@@ -36,6 +92,20 @@ module.exports = [
'idiom': 'universal',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any',
'filename': 'Default@2x~universal~comany.png',
'src': 'res/splash/ios/Default@2x~universal~comany.png',
@@ -44,6 +114,20 @@ module.exports = [
{
'idiom': 'universal',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -51,6 +135,20 @@ module.exports = [
'idiom': 'universal',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any',
'filename': 'Default@2x~universal~anyany.png',
'src': 'res/splash/ios/Default@2x~universal~anyany.png',
@@ -58,6 +156,20 @@ module.exports = [
},
{
'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
'scale': '3x',
'width': 'com',
'height': 'com'
@@ -66,6 +178,20 @@ module.exports = [
'idiom': 'universal',
'scale': '3x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
'height': 'any',
'filename': 'Default@3x~universal~comany.png',
'src': 'res/splash/ios/Default@3x~universal~comany.png',
@@ -74,6 +200,20 @@ module.exports = [
{
'idiom': 'universal',
'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
'width': 'any',
'height': 'com',
'filename': 'Default@3x~universal~anycom.png',
@@ -84,12 +224,40 @@ module.exports = [
'idiom': 'universal',
'scale': '3x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
'height': 'any',
'filename': 'Default@3x~universal~anyany.png',
'src': 'res/splash/ios/Default@3x~universal~anyany.png',
'target': 'Default@3x~universal~anyany.png'
},
{
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
'idiom': 'ipad',
'scale': '1x',
'width': 'com',
@@ -99,11 +267,39 @@ module.exports = [
'idiom': 'ipad',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'ipad',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -111,10 +307,38 @@ module.exports = [
'idiom': 'ipad',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
'scale': '2x',
'width': 'com',
'height': 'com'
@@ -123,11 +347,39 @@ module.exports = [
'idiom': 'ipad',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'ipad',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -135,9 +387,37 @@ module.exports = [
'idiom': 'ipad',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any'
},
{
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
'idiom': 'iphone',
'scale': '1x',
'width': 'com',
@@ -147,11 +427,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -159,10 +467,38 @@ module.exports = [
'idiom': 'iphone',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
'scale': '2x',
'width': 'com',
'height': 'com'
@@ -171,11 +507,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -183,10 +547,38 @@ module.exports = [
'idiom': 'iphone',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
'scale': '3x',
'width': 'com',
'height': 'com'
@@ -195,11 +587,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '3x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'width': 'any',
'height': 'com'
},
@@ -207,6 +627,34 @@ module.exports = [
'idiom': 'iphone',
'scale': '3x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
'height': 'any'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
}
];
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/varied-device-and-theme-map.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/varied-device-and-theme-map.js
new file mode 100644
index 0000000..27a7b6f
--- /dev/null
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/varied-device-and-theme-map.js
@@ -0,0 +1,693 @@
+module.exports = [
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'filename': 'Default@2x~universal~comcom.png',
+ 'src': 'res/splash/ios/Default@2x~universal~comcom.png',
+ 'target': 'Default@2x~universal~comcom.png'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light',
+ 'filename': 'Default@2x~universal~comcom~light.png',
+ 'src': 'res/splash/ios/Default@2x~universal~comcom~light.png',
+ 'target': 'Default@2x~universal~comcom~light.png'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'filename': 'Default@2x~universal~comany.png',
+ 'src': 'res/splash/ios/Default@2x~universal~comany.png',
+ 'target': 'Default@2x~universal~comany.png'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark',
+ 'filename': 'Default@2x~universal~comany~dark.png',
+ 'src': 'res/splash/ios/Default@2x~universal~comany~dark.png',
+ 'target': 'Default@2x~universal~comany~dark.png'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'filename': 'Default@2x~universal~anyany.png',
+ 'src': 'res/splash/ios/Default@2x~universal~anyany.png',
+ 'target': 'Default@2x~universal~anyany.png'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'filename': 'Default@2x~ipad~comcom.png',
+ 'src': 'res/splash/ios/Default@2x~ipad~comcom.png',
+ 'target': 'Default@2x~ipad~comcom.png'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark',
+ 'filename': 'Default@2x~ipad~comcom~dark.png',
+ 'src': 'res/splash/ios/Default@2x~ipad~comcom~dark.png',
+ 'target': 'Default@2x~ipad~comcom~dark.png'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light',
+ 'filename': 'Default@2x~ipad~comcom~light.png',
+ 'src': 'res/splash/ios/Default@2x~ipad~comcom~light.png',
+ 'target': 'Default@2x~ipad~comcom~light.png'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'filename': 'Default@2x~ipad~comany.png',
+ 'src': 'res/splash/ios/Default@2x~ipad~comany.png',
+ 'target': 'Default@2x~ipad~comany.png'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'filename': 'Default@2x~ipad~anyany.png',
+ 'src': 'res/splash/ios/Default@2x~ipad~anyany.png',
+ 'target': 'Default@2x~ipad~anyany.png'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark',
+ 'filename': 'Default@2x~ipad~anyany~dark.png',
+ 'src': 'res/splash/ios/Default@2x~ipad~anyany~dark.png',
+ 'target': 'Default@2x~ipad~anyany~dark.png'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light',
+ 'filename': 'Default@2x~ipad~anyany~light.png',
+ 'src': 'res/splash/ios/Default@2x~ipad~anyany~light.png',
+ 'target': 'Default@2x~ipad~anyany~light.png'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'filename': 'Default@3x~iphone~comany.png',
+ 'src': 'res/splash/ios/Default@3x~iphone~comany.png',
+ 'target': 'Default@3x~iphone~comany.png'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light',
+ 'filename': 'Default@3x~iphone~comany~light.png',
+ 'src': 'res/splash/ios/Default@3x~iphone~comany~light.png',
+ 'target': 'Default@3x~iphone~comany~light.png'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'filename': 'Default@3x~iphone~anycom.png',
+ 'src': 'res/splash/ios/Default@3x~iphone~anycom.png',
+ 'target': 'Default@3x~iphone~anycom.png'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'filename': 'Default@3x~iphone~anyany.png',
+ 'src': 'res/splash/ios/Default@3x~iphone~anyany.png',
+ 'target': 'Default@3x~iphone~anyany.png'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark',
+ 'filename': 'Default@3x~iphone~anyany~dark.png',
+ 'src': 'res/splash/ios/Default@3x~iphone~anyany~dark.png',
+ 'target': 'Default@3x~iphone~anyany~dark.png'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ }
+];
diff --git a/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/varied-device-map.js b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/varied-device-map.js
index b9480fc..fea7d93 100644
--- a/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/varied-device-map.js
+++ b/tests/spec/unit/fixtures/launch-storyboard-support/contents-map/varied-device-map.js
@@ -9,11 +9,39 @@ module.exports = [
'idiom': 'universal',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'universal',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -21,10 +49,38 @@ module.exports = [
'idiom': 'universal',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
'scale': '2x',
'width': 'com',
'height': 'com',
@@ -36,6 +92,20 @@ module.exports = [
'idiom': 'universal',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any',
'filename': 'Default@2x~universal~comany.png',
'src': 'res/splash/ios/Default@2x~universal~comany.png',
@@ -44,6 +114,20 @@ module.exports = [
{
'idiom': 'universal',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -51,6 +135,20 @@ module.exports = [
'idiom': 'universal',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any',
'filename': 'Default@2x~universal~anyany.png',
'src': 'res/splash/ios/Default@2x~universal~anyany.png',
@@ -58,6 +156,20 @@ module.exports = [
},
{
'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
'scale': '3x',
'width': 'com',
'height': 'com'
@@ -66,11 +178,39 @@ module.exports = [
'idiom': 'universal',
'scale': '3x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'universal',
'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
'width': 'any',
'height': 'com'
},
@@ -78,9 +218,37 @@ module.exports = [
'idiom': 'universal',
'scale': '3x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
'height': 'any'
},
{
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'universal',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
'idiom': 'ipad',
'scale': '1x',
'width': 'com',
@@ -90,11 +258,39 @@ module.exports = [
'idiom': 'ipad',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'ipad',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -102,10 +298,38 @@ module.exports = [
'idiom': 'ipad',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
'scale': '2x',
'width': 'com',
'height': 'com',
@@ -117,6 +341,20 @@ module.exports = [
'idiom': 'ipad',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any',
'filename': 'Default@2x~ipad~comany.png',
'src': 'res/splash/ios/Default@2x~ipad~comany.png',
@@ -125,6 +363,20 @@ module.exports = [
{
'idiom': 'ipad',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -132,12 +384,40 @@ module.exports = [
'idiom': 'ipad',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any',
'filename': 'Default@2x~ipad~anyany.png',
'src': 'res/splash/ios/Default@2x~ipad~anyany.png',
'target': 'Default@2x~ipad~anyany.png'
},
{
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'ipad',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
'idiom': 'iphone',
'scale': '1x',
'width': 'com',
@@ -147,11 +427,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '1x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
'width': 'any',
'height': 'com'
},
@@ -159,10 +467,38 @@ module.exports = [
'idiom': 'iphone',
'scale': '1x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '1x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
'scale': '2x',
'width': 'com',
'height': 'com'
@@ -171,11 +507,39 @@ module.exports = [
'idiom': 'iphone',
'scale': '2x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
'height': 'any'
},
{
'idiom': 'iphone',
'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
'width': 'any',
'height': 'com'
},
@@ -183,10 +547,38 @@ module.exports = [
'idiom': 'iphone',
'scale': '2x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
'height': 'any'
},
{
'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '2x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
'scale': '3x',
'width': 'com',
'height': 'com'
@@ -195,6 +587,20 @@ module.exports = [
'idiom': 'iphone',
'scale': '3x',
'width': 'com',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
'height': 'any',
'filename': 'Default@3x~iphone~comany.png',
'src': 'res/splash/ios/Default@3x~iphone~comany.png',
@@ -203,6 +609,20 @@ module.exports = [
{
'idiom': 'iphone',
'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'com',
+ 'height': 'any',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
'width': 'any',
'height': 'com',
'filename': 'Default@3x~iphone~anycom.png',
@@ -213,9 +633,37 @@ module.exports = [
'idiom': 'iphone',
'scale': '3x',
'width': 'any',
+ 'height': 'com',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'com',
+ 'appearence': 'light'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
'height': 'any',
'filename': 'Default@3x~iphone~anyany.png',
'src': 'res/splash/ios/Default@3x~iphone~anyany.png',
'target': 'Default@3x~iphone~anyany.png'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'dark'
+ },
+ {
+ 'idiom': 'iphone',
+ 'scale': '3x',
+ 'width': 'any',
+ 'height': 'any',
+ 'appearence': 'light'
}
];
diff --git a/tests/spec/unit/prepare.spec.js b/tests/spec/unit/prepare.spec.js
index a1ec9fd..d920031 100644
--- a/tests/spec/unit/prepare.spec.js
+++ b/tests/spec/unit/prepare.spec.js
@@ -88,6 +88,26 @@ describe('prepare', () => {
makeSplashScreenEntry('res/splash/ios/Default@3x~iphone~comany.png')
];
+ const multiDeviceMultiThemeLaunchStoryboardImages = [
+ makeSplashScreenEntry('res/splash/ios/Default@2x~ipad~anyany.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~ipad~anyany~dark.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~ipad~anyany~light.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~ipad~comany.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~ipad~comcom.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~ipad~comcom~dark.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~ipad~comcom~light.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~universal~anyany.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~universal~comany.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~universal~comany~dark.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~universal~comcom.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@2x~universal~comcom~light.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@3x~iphone~anyany.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@3x~iphone~anyany~dark.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@3x~iphone~anycom.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@3x~iphone~comany.png'),
+ makeSplashScreenEntry('res/splash/ios/Default@3x~iphone~comany~light.png')
+ ];
+
describe('#mapLaunchStoryboardContents', () => {
const mapLaunchStoryboardContents = prepare.__get__('mapLaunchStoryboardContents');
@@ -120,6 +140,12 @@ describe('prepare', () => {
expect(result).toBeDefined();
expect(result).toEqual(require('./fixtures/launch-storyboard-support/contents-map/varied-device-map'));
});
+
+ it('should return an array with several mapped storyboard images across device classes and themes', () => {
+ const result = mapLaunchStoryboardContents(multiDeviceMultiThemeLaunchStoryboardImages, '');
+ expect(result).toBeDefined();
+ expect(result).toEqual(require('./fixtures/launch-storyboard-support/contents-map/varied-device-and-theme-map'));
+ });
});
describe('#mapLaunchStoryboardResources', () => {
@@ -175,6 +201,30 @@ describe('prepare', () => {
'Default@3x~iphone~comany.png': 'res/splash/ios/Default@3x~iphone~comany.png'
});
});
+
+ it('should return an object with several mapped storyboard images across device classes and themes', () => {
+ const result = mapLaunchStoryboardResources(multiDeviceMultiThemeLaunchStoryboardImages, '');
+ expect(result).toBeDefined();
+ expect(result).toEqual({
+ 'Default@2x~universal~anyany.png': 'res/splash/ios/Default@2x~universal~anyany.png',
+ 'Default@2x~universal~comany.png': 'res/splash/ios/Default@2x~universal~comany.png',
+ 'Default@2x~universal~comany~dark.png': 'res/splash/ios/Default@2x~universal~comany~dark.png',
+ 'Default@2x~universal~comcom.png': 'res/splash/ios/Default@2x~universal~comcom.png',
+ 'Default@2x~universal~comcom~light.png': 'res/splash/ios/Default@2x~universal~comcom~light.png',
+ 'Default@2x~ipad~anyany.png': 'res/splash/ios/Default@2x~ipad~anyany.png',
+ 'Default@2x~ipad~anyany~dark.png': 'res/splash/ios/Default@2x~ipad~anyany~dark.png',
+ 'Default@2x~ipad~anyany~light.png': 'res/splash/ios/Default@2x~ipad~anyany~light.png',
+ 'Default@2x~ipad~comany.png': 'res/splash/ios/Default@2x~ipad~comany.png',
+ 'Default@2x~ipad~comcom.png': 'res/splash/ios/Default@2x~ipad~comcom.png',
+ 'Default@2x~ipad~comcom~dark.png': 'res/splash/ios/Default@2x~ipad~comcom~dark.png',
+ 'Default@2x~ipad~comcom~light.png': 'res/splash/ios/Default@2x~ipad~comcom~light.png',
+ 'Default@3x~iphone~anyany.png': 'res/splash/ios/Default@3x~iphone~anyany.png',
+ 'Default@3x~iphone~anyany~dark.png': 'res/splash/ios/Default@3x~iphone~anyany~dark.png',
+ 'Default@3x~iphone~anycom.png': 'res/splash/ios/Default@3x~iphone~anycom.png',
+ 'Default@3x~iphone~comany.png': 'res/splash/ios/Default@3x~iphone~comany.png',
+ 'Default@3x~iphone~comany~light.png': 'res/splash/ios/Default@3x~iphone~comany~light.png'
+ });
+ });
});
describe('#getLaunchStoryboardContentsJSON', () => {
@@ -209,6 +259,12 @@ describe('prepare', () => {
expect(result).toBeDefined();
expect(result).toEqual(require('./fixtures/launch-storyboard-support/contents-json/varied-device'));
});
+
+ it('should return contents.json with several mapped storyboard images across device classes and themes', () => {
+ const result = getLaunchStoryboardContentsJSON(multiDeviceMultiThemeLaunchStoryboardImages, '');
+ expect(result).toBeDefined();
+ expect(result).toEqual(require('./fixtures/launch-storyboard-support/contents-json/varied-device-and-theme'));
+ });
});
describe('#getLaunchStoryboardImagesDir', () => {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org