mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
iOS: Correctly set UIViewControllerBasedStatusBarAppearance and UIStatusBarHidden in .plist
This commit is contained in:
parent
4ef5012271
commit
b5496b16f3
1 changed files with 4 additions and 7 deletions
|
|
@ -134,9 +134,7 @@ namespace build_tools
|
|||
addPlistDictionaryKey (*dict, "NSBluetoothPeripheralUsageDescription", bluetoothPermissionText); // needed for pre iOS 13.0
|
||||
|
||||
addPlistDictionaryKey (*dict, "LSRequiresIPhoneOS", true);
|
||||
|
||||
if (type != ProjectType::Target::AudioUnitv3PlugIn)
|
||||
addPlistDictionaryKey (*dict, "UIViewControllerBasedStatusBarAppearance", false);
|
||||
addPlistDictionaryKey (*dict, "UIViewControllerBasedStatusBarAppearance", true);
|
||||
|
||||
if (shouldAddStoryboardToProject)
|
||||
addPlistDictionaryKey (*dict, "UILaunchStoryboardName", storyboardName);
|
||||
|
|
@ -201,16 +199,15 @@ namespace build_tools
|
|||
if (documentBrowserEnabled)
|
||||
addPlistDictionaryKey (*dict, "UISupportsDocumentBrowser", true);
|
||||
|
||||
if (statusBarHidden && type != ProjectType::Target::AudioUnitv3PlugIn)
|
||||
addPlistDictionaryKey (*dict, "UIStatusBarHidden", true);
|
||||
|
||||
if (iOS)
|
||||
{
|
||||
if (type != ProjectType::Target::AudioUnitv3PlugIn)
|
||||
{
|
||||
// Forcing full screen disables the split screen feature and prevents error ITMS-90475
|
||||
addPlistDictionaryKey (*dict, "UIRequiresFullScreen", true);
|
||||
addPlistDictionaryKey (*dict, "UIStatusBarHidden", true);
|
||||
|
||||
if (statusBarHidden)
|
||||
addPlistDictionaryKey (*dict, "UIStatusBarHidden", true);
|
||||
|
||||
addIosScreenOrientations (*dict);
|
||||
addIosBackgroundModes (*dict);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue