From 9eb5e38cae570bf7cf128aedc19c5f1df2d35c4f Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 5 Feb 2021 11:36:21 +0000 Subject: [PATCH] DemoRunner: Enable all orientations and disable full screen requirement on iOS to enable Slide Over and Split View features --- examples/DemoRunner/Builds/iOS/Info-App.plist | 5 ++--- examples/DemoRunner/CMakeLists.txt | 11 ++++++++++- examples/DemoRunner/DemoRunner.jucer | 4 +++- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/examples/DemoRunner/Builds/iOS/Info-App.plist b/examples/DemoRunner/Builds/iOS/Info-App.plist index 12d05f1bbb..5e382c20f9 100644 --- a/examples/DemoRunner/Builds/iOS/Info-App.plist +++ b/examples/DemoRunner/Builds/iOS/Info-App.plist @@ -41,13 +41,12 @@ UISupportsDocumentBrowser - UIRequiresFullScreen - UISupportedInterfaceOrientations - UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown UIBackgroundModes diff --git a/examples/DemoRunner/CMakeLists.txt b/examples/DemoRunner/CMakeLists.txt index 7992fa2981..1fea3a8859 100644 --- a/examples/DemoRunner/CMakeLists.txt +++ b/examples/DemoRunner/CMakeLists.txt @@ -30,7 +30,16 @@ juce_add_gui_app(DemoRunner CAMERA_PERMISSION_ENABLED TRUE BLUETOOTH_PERMISSION_ENABLED TRUE FILE_SHARING_ENABLED TRUE - DOCUMENT_BROWSER_ENABLED TRUE) + DOCUMENT_BROWSER_ENABLED TRUE + REQUIRES_FULL_SCREEN FALSE + IPAD_SCREEN_ORIENTATIONS UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + IPHONE_SCREEN_ORIENTATIONS UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight) juce_generate_juce_header(DemoRunner) diff --git a/examples/DemoRunner/DemoRunner.jucer b/examples/DemoRunner/DemoRunner.jucer index d797a133a0..7d1bffda53 100644 --- a/examples/DemoRunner/DemoRunner.jucer +++ b/examples/DemoRunner/DemoRunner.jucer @@ -123,7 +123,9 @@ + iosBluetoothPermissionNeeded="1" iosScreenOrientation="UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown" + iPadScreenOrientation="UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown" + UIRequiresFullScreen="0">