From da69c712aaf4b958cfbe03fbcf9192af571f8dcb Mon Sep 17 00:00:00 2001 From: tamara-slosarek Date: Wed, 3 Jan 2024 17:31:27 +0100 Subject: [PATCH] build(app): for iOS only allow iPhone and portrait mode --- app/ios/Runner.xcodeproj/project.pbxproj | 18 ++++++++++++++++++ app/ios/Runner/Info.plist | 23 +++++++++-------------- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/app/ios/Runner.xcodeproj/project.pbxproj b/app/ios/Runner.xcodeproj/project.pbxproj index c599db8d..6d463dc7 100644 --- a/app/ios/Runner.xcodeproj/project.pbxproj +++ b/app/ios/Runner.xcodeproj/project.pbxproj @@ -367,8 +367,14 @@ ); PRODUCT_BUNDLE_IDENTIFIER = de.hpi.pharme; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = Pharme; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 1; VERSIONING_SYSTEM = "apple-generic"; }; name = Profile; @@ -495,9 +501,15 @@ ); PRODUCT_BUNDLE_IDENTIFIER = de.hpi.pharme; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = Pharme; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 1; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; @@ -518,8 +530,14 @@ ); PRODUCT_BUNDLE_IDENTIFIER = de.hpi.pharme; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = Pharme; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 1; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; diff --git a/app/ios/Runner/Info.plist b/app/ios/Runner/Info.plist index 3bffd80b..0e8eab73 100644 --- a/app/ios/Runner/Info.plist +++ b/app/ios/Runner/Info.plist @@ -20,6 +20,13 @@ ???? CFBundleVersion $(FLUTTER_BUILD_NUMBER) + FLTEnableImpeller + + LSApplicationQueriesSchemes + + https + http + LSRequiresIPhoneOS UILaunchStoryboardName @@ -29,15 +36,13 @@ UISupportedInterfaceOrientations UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown LSApplicationQueriesSchemes @@ -46,15 +51,5 @@ UIViewControllerBasedStatusBarAppearance - CADisableMinimumFrameDurationOnPhone - - LSSupportsOpeningDocumentsInPlace - - UIFileSharingEnabled - - UIApplicationSupportsIndirectInputEvents - - FLTEnableImpeller -