Browse Source

DemoRunner: Enable all orientations and disable full screen requirement on iOS to enable Slide Over and Split View features

tags/2021-05-28
ed 5 years ago
parent
commit
9eb5e38cae
3 changed files with 15 additions and 5 deletions
  1. +2
    -3
      examples/DemoRunner/Builds/iOS/Info-App.plist
  2. +10
    -1
      examples/DemoRunner/CMakeLists.txt
  3. +3
    -1
      examples/DemoRunner/DemoRunner.jucer

+ 2
- 3
examples/DemoRunner/Builds/iOS/Info-App.plist View File

@@ -41,13 +41,12 @@
<true/> <true/>
<key>UISupportsDocumentBrowser</key> <key>UISupportsDocumentBrowser</key>
<true/> <true/>
<key>UIRequiresFullScreen</key>
<true/>
<key>UISupportedInterfaceOrientations</key> <key>UISupportedInterfaceOrientations</key>
<array> <array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string> <string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array> </array>
<key>UIBackgroundModes</key> <key>UIBackgroundModes</key>
<array/> <array/>


+ 10
- 1
examples/DemoRunner/CMakeLists.txt View File

@@ -30,7 +30,16 @@ juce_add_gui_app(DemoRunner
CAMERA_PERMISSION_ENABLED TRUE CAMERA_PERMISSION_ENABLED TRUE
BLUETOOTH_PERMISSION_ENABLED TRUE BLUETOOTH_PERMISSION_ENABLED TRUE
FILE_SHARING_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) juce_generate_juce_header(DemoRunner)




+ 3
- 1
examples/DemoRunner/DemoRunner.jucer View File

@@ -123,7 +123,9 @@
<XCODE_IPHONE targetFolder="Builds/iOS" UISupportsDocumentBrowser="1" microphonePermissionNeeded="1" <XCODE_IPHONE targetFolder="Builds/iOS" UISupportsDocumentBrowser="1" microphonePermissionNeeded="1"
cameraPermissionNeeded="1" iCloudPermissions="1" UIFileSharingEnabled="1" cameraPermissionNeeded="1" iCloudPermissions="1" UIFileSharingEnabled="1"
customXcodeResourceFolders="../Assets" smallIcon="YyqWd2" bigIcon="YyqWd2" customXcodeResourceFolders="../Assets" smallIcon="YyqWd2" bigIcon="YyqWd2"
iosBluetoothPermissionNeeded="1">
iosBluetoothPermissionNeeded="1" iosScreenOrientation="UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown"
iPadScreenOrientation="UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight,UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown"
UIRequiresFullScreen="0">
<CONFIGURATIONS> <CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug" recommendedWarnings="LLVM"/> <CONFIGURATION isDebug="1" name="Debug" recommendedWarnings="LLVM"/>
<CONFIGURATION isDebug="0" name="Release" recommendedWarnings="LLVM"/> <CONFIGURATION isDebug="0" name="Release" recommendedWarnings="LLVM"/>


Loading…
Cancel
Save