in lib/prepare.js [1036:1071]
function getLaunchStoryboardContentsJSON (splashScreens, launchStoryboardImagesDir) {
const platformLaunchStoryboardImages = mapLaunchStoryboardContents(splashScreens, launchStoryboardImagesDir);
const contentsJSON = {
images: [],
info: {
author: 'Xcode',
version: 1
}
};
contentsJSON.images = platformLaunchStoryboardImages.map(item => {
const newItem = {
idiom: item.idiom,
scale: item.scale
};
// Xcode doesn't want any size class property if the class is "any"
// If our size class is "com", Xcode wants "compact".
if (item.width !== CDV_ANY_SIZE_CLASS) {
newItem['width-class'] = IMAGESET_COMPACT_SIZE_CLASS;
}
if (item.height !== CDV_ANY_SIZE_CLASS) {
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;
}
return newItem;
});
return contentsJSON;
}