Skip to content

Commit 7d8c3a7

Browse files
committed
feat: ios example app allow split view
1 parent a41f82a commit 7d8c3a7

2 files changed

Lines changed: 23 additions & 9 deletions

File tree

example/ios/example.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,11 @@
480480
);
481481
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
482482
PRODUCT_NAME = example;
483+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
484+
SUPPORTS_MACCATALYST = NO;
483485
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
484486
SWIFT_VERSION = 5.0;
487+
TARGETED_DEVICE_FAMILY = "1,2";
485488
VERSIONING_SYSTEM = "apple-generic";
486489
};
487490
name = Debug;
@@ -506,7 +509,10 @@
506509
);
507510
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
508511
PRODUCT_NAME = example;
512+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
513+
SUPPORTS_MACCATALYST = NO;
509514
SWIFT_VERSION = 5.0;
515+
TARGETED_DEVICE_FAMILY = "1,2";
510516
VERSIONING_SYSTEM = "apple-generic";
511517
};
512518
name = Release;
@@ -580,10 +586,7 @@
580586
"-DFOLLY_USE_LIBCPP=1",
581587
"-DFOLLY_CFG_NO_COROUTINES=1",
582588
);
583-
OTHER_LDFLAGS = (
584-
"$(inherited)",
585-
" ",
586-
);
589+
OTHER_LDFLAGS = "$(inherited) ";
587590
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
588591
SDKROOT = iphoneos;
589592
USE_HERMES = true;
@@ -651,10 +654,7 @@
651654
"-DFOLLY_USE_LIBCPP=1",
652655
"-DFOLLY_CFG_NO_COROUTINES=1",
653656
);
654-
OTHER_LDFLAGS = (
655-
"$(inherited)",
656-
" ",
657-
);
657+
OTHER_LDFLAGS = "$(inherited) ";
658658
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
659659
SDKROOT = iphoneos;
660660
USE_HERMES = true;

example/ios/example/Info.plist

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
<true/>
2727
<key>NSAppTransportSecurity</key>
2828
<dict>
29-
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
3029
<key>NSAllowsArbitraryLoads</key>
3130
<false/>
3231
<key>NSAllowsLocalNetworking</key>
@@ -40,12 +39,27 @@
4039
<array>
4140
<string>armv7</string>
4241
</array>
42+
<key>UIRequiresFullScreen</key>
43+
<false/>
44+
<key>UIStatusBarHidden</key>
45+
<false/>
46+
<key>UIStatusBarStyle</key>
47+
<string></string>
4348
<key>UISupportedInterfaceOrientations</key>
4449
<array>
50+
<string>UIInterfaceOrientationLandscapeLeft</string>
51+
<string>UIInterfaceOrientationLandscapeRight</string>
4552
<string>UIInterfaceOrientationPortrait</string>
53+
</array>
54+
<key>UISupportedInterfaceOrientations~ipad</key>
55+
<array>
4656
<string>UIInterfaceOrientationLandscapeLeft</string>
4757
<string>UIInterfaceOrientationLandscapeRight</string>
58+
<string>UIInterfaceOrientationPortrait</string>
59+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
4860
</array>
61+
<key>Supported mu</key>
62+
<string></string>
4963
<key>UIViewControllerBasedStatusBarAppearance</key>
5064
<false/>
5165
</dict>

0 commit comments

Comments
 (0)