This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/@expo/config-plugins/build/ios/RequiresFullScreen.js.map

1 line
1.7 KiB
Plaintext
Raw Permalink Normal View History

2021-04-02 02:24:13 +03:00
{"version":3,"file":"RequiresFullScreen.js","sourceRoot":"","sources":["../../src/ios/RequiresFullScreen.ts"],"names":[],"mappings":";;AAEA,wDAA+D;AAGlD,QAAA,sBAAsB,GAAG,mCAAqB,CACzD,qBAAqB,EACrB,wBAAwB,CACzB,CAAC;AAEF,gFAAgF;AAChF,+EAA+E;AAC/E,yBAAyB;AACzB,SAAgB,qBAAqB,CAAC,MAA+B;;IACnE,oFAAoF;IACpF,4EAA4E;IAC5E,UAAI,MAAM,CAAC,GAAG,0CAAE,cAAc,CAAC,mBAAmB,GAAG;QACnD,OAAO,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC;KACvC;SAAM;QACL,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AARD,sDAQC;AAED,uCAAuC;AACvC,SAAgB,qBAAqB,CACnC,MAA+B,EAC/B,SAAoB;IAEpB,uCACK,SAAS,KACZ,oBAAoB,EAAE,qBAAqB,CAAC,MAAM,CAAC,IACnD;AACJ,CAAC;AARD,sDAQC","sourcesContent":["import { ExpoConfig } from '@expo/config-types';\n\nimport { createInfoPlistPlugin } from '../plugins/ios-plugins';\nimport { InfoPlist } from './IosConfig.types';\n\nexport const withRequiresFullScreen = createInfoPlistPlugin(\n setRequiresFullScreen,\n 'withRequiresFullScreen'\n);\n\n// NOTES: This is defaulted to `true` for now to match the behavior prior to SDK\n// 34, but will change to `false` in a future SDK version. This note was copied\n// over from IosNSBundle.\nexport function getRequiresFullScreen(config: Pick<ExpoConfig, 'ios'>) {\n // Yes, the property is called ios.requireFullScreen, without the s - not \"requires\"\n // This is confusing indeed because the actual property name does have the s\n if (config.ios?.hasOwnProperty('requireFullScreen')) {\n return !!config.ios.requireFullScreen;\n } else {\n return true;\n }\n}\n\n// Whether requires full screen on iPad\nexport function setRequiresFullScreen(\n config: Pick<ExpoConfig, 'ios'>,\n infoPlist: InfoPlist\n): InfoPlist {\n return {\n ...infoPlist,\n UIRequiresFullScreen: getRequiresFullScreen(config),\n };\n}\n"]}