Maintain portrait in app clip (#4630)

zio/stable
Hailey 2024-06-24 17:47:20 -07:00 committed by GitHub
parent f94edc3f44
commit 2ed133cb63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,14 @@ const withClipInfoPlist = (config, {targetName}) => {
CFBundleShortVersionString: config.version, CFBundleShortVersionString: config.version,
CFBundleIconName: 'AppIcon', CFBundleIconName: 'AppIcon',
UIViewControllerBasedStatusBarAppearance: 'NO', UIViewControllerBasedStatusBarAppearance: 'NO',
UISupportedInterfaceOrientations: [
'UIInterfaceOrientationPortrait',
'UIInterfaceOrientationPortraitUpsideDown',
],
'UISupportedInterfaceOrientations~ipad': [
'UIInterfaceOrientationPortrait',
'UIInterfaceOrientationPortraitUpsideDown',
],
}) })
fs.mkdirSync(path.dirname(targetPath), {recursive: true}) fs.mkdirSync(path.dirname(targetPath), {recursive: true})