UNPKG

1.05 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3// NOTES: This is defaulted to `true` for now to match the behavior prior to SDK
4// 34, but will change to `false` in a future SDK version. This note was copied
5// over from IosNSBundle.
6function getRequiresFullScreen(config) {
7 var _a;
8 // Yes, the proeprty is called ios.requireFullScreen, without the s - not "requires"
9 // This is confusing indeed because the actual property name does have the s
10 if ((_a = config.ios) === null || _a === void 0 ? void 0 : _a.hasOwnProperty('requireFullScreen')) {
11 return !!config.ios.requireFullScreen;
12 }
13 else {
14 return true;
15 }
16}
17exports.getRequiresFullScreen = getRequiresFullScreen;
18// Whether requires full screen on iPad
19function setRequiresFullScreen(config, infoPlist) {
20 return Object.assign(Object.assign({}, infoPlist), { UIRequiresFullScreen: getRequiresFullScreen(config) });
21}
22exports.setRequiresFullScreen = setRequiresFullScreen;
23//# sourceMappingURL=RequiresFullScreen.js.map
\No newline at end of file