in lib/prepare.js [1164:1182]
function getOrientationValue (platformConfig) {
const ORIENTATION_DEFAULT = 'default';
let orientation = platformConfig.getPreference('orientation');
if (!orientation) {
return ORIENTATION_DEFAULT;
}
orientation = orientation.toLowerCase();
// Check if the given global orientation is supported
if (['default', 'portrait', 'landscape', 'all'].indexOf(orientation) >= 0) {
return orientation;
}
events.emit('warn', `Unrecognized value for Orientation preference: ${orientation}. Defaulting to value: ${ORIENTATION_DEFAULT}.`);
return ORIENTATION_DEFAULT;
}