You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dp...@apache.org on 2020/06/17 06:45:48 UTC

[cordova-ios] 01/01: Revert "(ios) Don't pre-fill orientation"

This is an automated email from the ASF dual-hosted git repository.

dpogue pushed a commit to branch revert-615-fix/orientation
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git

commit 05512e5a4975f0dc883f531452fd456e1ada4726
Author: Darryl Pogue <da...@dpogue.ca>
AuthorDate: Tue Jun 16 23:45:19 2020 -0700

    Revert "(ios) Don't pre-fill orientation"
    
    This reverts commit fb494781ff9377621a933d5687c4545e9ca1b0ed.
---
 .../project/__PROJECT_NAME__/__PROJECT_NAME__-Info.plist    | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/bin/templates/project/__PROJECT_NAME__/__PROJECT_NAME__-Info.plist b/bin/templates/project/__PROJECT_NAME__/__PROJECT_NAME__-Info.plist
index cb02b3f..3567a50 100644
--- a/bin/templates/project/__PROJECT_NAME__/__PROJECT_NAME__-Info.plist
+++ b/bin/templates/project/__PROJECT_NAME__/__PROJECT_NAME__-Info.plist
@@ -32,5 +32,18 @@
 	<string>CDVLaunchScreen</string>
 	<key>UIRequiresFullScreen</key>
 	<true/>
+	<key>UISupportedInterfaceOrientations</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
+	<key>UISupportedInterfaceOrientations~ipad</key>
+	<array>
+		<string>UIInterfaceOrientationPortrait</string>
+		<string>UIInterfaceOrientationLandscapeLeft</string>
+		<string>UIInterfaceOrientationPortraitUpsideDown</string>
+		<string>UIInterfaceOrientationLandscapeRight</string>
+	</array>
 </dict>
 </plist>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org