packages/cafeteria/platforms/ios/cordova/lib/prepare.js
function checkIfBuildSettingsNeedUpdatedForLaunchStoryboard(platformConfig, infoPlist) {
    var hasLaunchStoryboardImages = platformHasLaunchStoryboardImages(platformConfig);
    var hasLegacyLaunchImages = platformHasLegacyLaunchImages(platformConfig);
    var currentLaunchStoryboard = infoPlist[UI_LAUNCH_STORYBOARD_NAME];

    if (hasLaunchStoryboardImages && currentLaunchStoryboard == CDV_LAUNCH_STORYBOARD_NAME && !hasLegacyLaunchImages) {
        // don't need legacy launch images if we are using our launch storyboard
        // so we do need to update the project file
        events.emit('verbose', 'Need to update build settings because project is using our launch storyboard.');
        return true;
    } else if (hasLegacyLaunchImages && !currentLaunchStoryboard) {
        // we do need to ensure legacy launch images are used if there's no launch storyboard present
        // so we do need to update the project file
        events.emit('verbose', 'Need to update build settings because project is using legacy launch images and no storyboard.');
        return true;
    }
    events.emit('verbose', 'No need to update build settings for launch storyboard support.');
    return false;
}
function checkIfBuildSettingsNeedUpdatedForLaunchStoryboard(platformConfig, infoPlist) {
    var hasLaunchStoryboardImages = platformHasLaunchStoryboardImages(platformConfig);
    var hasLegacyLaunchImages = platformHasLegacyLaunchImages(platformConfig);
    var currentLaunchStoryboard = infoPlist[UI_LAUNCH_STORYBOARD_NAME];

    if (hasLaunchStoryboardImages && currentLaunchStoryboard == CDV_LAUNCH_STORYBOARD_NAME && !hasLegacyLaunchImages) {
        // don't need legacy launch images if we are using our launch storyboard
        // so we do need to update the project file
        events.emit('verbose', 'Need to update build settings because project is using our launch storyboard.');
        return true;
    } else if (hasLegacyLaunchImages && !currentLaunchStoryboard) {
        // we do need to ensure legacy launch images are used if there's no launch storyboard present
        // so we do need to update the project file
        events.emit('verbose', 'Need to update build settings because project is using legacy launch images and no storyboard.');
        return true;
    }
    events.emit('verbose', 'No need to update build settings for launch storyboard support.');
    return false;
}
function checkIfBuildSettingsNeedUpdatedForLaunchStoryboard ( platformConfig , infoPlist ) { var hasLaunchStoryboardImages = platformHasLaunchStoryboardImages ( platformConfig ) ; var hasLegacyLaunchImages = platformHasLegacyLaunchImages ( platformConfig ) ; var currentLaunchStoryboard = infoPlist [ UI_LAUNCH_STORYBOARD_NAME ] ; if ( hasLaunchStoryboardImages && currentLaunchStoryboard == CDV_LAUNCH_STORYBOARD_NAME && ! hasLegacyLaunchImages ) { // don't need legacy launch images if we are using our launch storyboard // so we do need to update the project file events . emit ( 'verbose' , 'Need to update build settings because project is using our launch storyboard.' ) ; return true ; } else if ( hasLegacyLaunchImages && ! currentLaunchStoryboard ) { // we do need to ensure legacy launch images are used if there's no launch storyboard present // so we do need to update the project file events . emit ( 'verbose' , 'Need to update build settings because project is using legacy launch images and no storyboard.' ) ; return true ; } events . emit ( 'verbose' , 'No need to update build settings for launch storyboard support.' ) ; return false ; }
Determines if the project's build settings may need to be updated for launch storyboard support
Determines if the project s build settings may need to be updated for launch storyboard support