Skip to content

Commit 159ced0

Browse files
committed
adopt new UISceneDelegate
1 parent cbd5148 commit 159ced0

3 files changed

Lines changed: 109 additions & 87 deletions

File tree

ios/Flutter/AppFrameworkInfo.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
23-
<key>MinimumOSVersion</key>
24-
<string>13.0</string>
2523
</dict>
2624
</plist>

ios/Runner/AppDelegate.swift

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import UIKit
2-
import Flutter
2+
import Flutter
33

44
@main
5-
@objc class AppDelegate: FlutterAppDelegate {
6-
override func application(
7-
_ application: UIApplication,
8-
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9-
) -> Bool {
10-
GeneratedPluginRegistrant.register(with: self)
11-
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12-
}
5+
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
6+
override func application(
7+
_ application: UIApplication,
8+
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9+
) -> Bool {
10+
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
11+
}
12+
13+
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
14+
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
15+
}
1316
}

ios/Runner/Info.plist

Lines changed: 97 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,101 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>CADisableMinimumFrameDurationOnPhone</key>
6-
<true/>
7-
<key>CFBundleDevelopmentRegion</key>
8-
<string>$(DEVELOPMENT_LANGUAGE)</string>
9-
<key>CFBundleDisplayName</key>
10-
<string>Campus App</string>
11-
<key>CFBundleExecutable</key>
12-
<string>$(EXECUTABLE_NAME)</string>
13-
<key>CFBundleIdentifier</key>
14-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15-
<key>CFBundleInfoDictionaryVersion</key>
16-
<string>6.0</string>
17-
<key>CFBundleLocalizations</key>
18-
<array>
19-
<string>en</string>
20-
<string>de</string>
21-
</array>
22-
<key>CFBundleName</key>
23-
<string>campus_flutter</string>
24-
<key>CFBundlePackageType</key>
25-
<string>APPL</string>
26-
<key>CFBundleShortVersionString</key>
27-
<string>$(FLUTTER_BUILD_NAME)</string>
28-
<key>CFBundleSignature</key>
29-
<string>????</string>
30-
<key>CFBundleVersion</key>
31-
<string>$(FLUTTER_BUILD_NUMBER)</string>
32-
<key>ITSAppUsesNonExemptEncryption</key>
33-
<false/>
34-
<key>LSApplicationQueriesSchemes</key>
35-
<array>
36-
<string>comgooglemaps</string>
37-
<string>waze</string>
38-
<string>https</string>
39-
<string>tel</string>
40-
<string>mailto</string>
41-
</array>
42-
<key>LSRequiresIPhoneOS</key>
43-
<true/>
44-
<key>NSLocationWhenInUseUsageDescription</key>
45-
<string>To provide you with the closest study rooms, cafeteria and departures we need to access your location while in use</string>
46-
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
47-
<string>To provide you with the closest study rooms, cafeteria and departures we need to access your location</string>
48-
<key>NSCalendarsUsageDescription</key>
49-
<string>To sync your TUM calendar events with your device calendar</string>
50-
<key>NSCalendarsFullAccessUsageDescription</key>
51-
<string>To sync your TUM calendar events with your device calendar</string>
52-
<key>NSContactsUsageDescription</key>
53-
<string>To save TUM contacts to your local contacts we need access to your contacts</string>
54-
<key>UIApplicationSupportsIndirectInputEvents</key>
55-
<true/>
56-
<key>UILaunchStoryboardName</key>
57-
<string>LaunchScreen</string>
58-
<key>UIMainStoryboardFile</key>
59-
<string>Main</string>
60-
<key>UIRequiresFullScreen</key>
61-
<false/>
62-
<key>UIStatusBarStyle</key>
63-
<string></string>
64-
<key>UISupportedInterfaceOrientations</key>
65-
<array>
66-
<string>UIInterfaceOrientationPortrait</string>
67-
</array>
68-
<key>UISupportedInterfaceOrientations~ipad</key>
69-
<array>
70-
<string>UIInterfaceOrientationLandscapeLeft</string>
71-
<string>UIInterfaceOrientationLandscapeRight</string>
72-
<string>UIInterfaceOrientationPortrait</string>
73-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
74-
</array>
75-
<key>UIViewControllerBasedStatusBarAppearance</key>
76-
<false/>
77-
<key>io.flutter.embedded_views_preview</key>
78-
<string>YES</string>
79-
</dict>
4+
<dict>
5+
<key>CADisableMinimumFrameDurationOnPhone</key>
6+
<true/>
7+
<key>CFBundleDevelopmentRegion</key>
8+
<string>$(DEVELOPMENT_LANGUAGE)</string>
9+
<key>CFBundleDisplayName</key>
10+
<string>Campus App</string>
11+
<key>CFBundleExecutable</key>
12+
<string>$(EXECUTABLE_NAME)</string>
13+
<key>CFBundleIdentifier</key>
14+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15+
<key>CFBundleInfoDictionaryVersion</key>
16+
<string>6.0</string>
17+
<key>CFBundleLocalizations</key>
18+
<array>
19+
<string>en</string>
20+
<string>de</string>
21+
</array>
22+
<key>CFBundleName</key>
23+
<string>campus_flutter</string>
24+
<key>CFBundlePackageType</key>
25+
<string>APPL</string>
26+
<key>CFBundleShortVersionString</key>
27+
<string>$(FLUTTER_BUILD_NAME)</string>
28+
<key>CFBundleSignature</key>
29+
<string>????</string>
30+
<key>CFBundleVersion</key>
31+
<string>$(FLUTTER_BUILD_NUMBER)</string>
32+
<key>ITSAppUsesNonExemptEncryption</key>
33+
<false/>
34+
<key>LSApplicationQueriesSchemes</key>
35+
<array>
36+
<string>comgooglemaps</string>
37+
<string>waze</string>
38+
<string>https</string>
39+
<string>tel</string>
40+
<string>mailto</string>
41+
</array>
42+
<key>LSRequiresIPhoneOS</key>
43+
<true/>
44+
<key>NSLocationWhenInUseUsageDescription</key>
45+
<string>To provide you with the closest study rooms, cafeteria and departures we need to access your location while in use</string>
46+
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
47+
<string>To provide you with the closest study rooms, cafeteria and departures we need to access your location</string>
48+
<key>NSCalendarsUsageDescription</key>
49+
<string>To sync your TUM calendar events with your device calendar</string>
50+
<key>NSCalendarsFullAccessUsageDescription</key>
51+
<string>To sync your TUM calendar events with your device calendar</string>
52+
<key>NSContactsUsageDescription</key>
53+
<string>To save TUM contacts to your local contacts we need access to your contacts</string>
54+
<key>UIApplicationSceneManifest</key>
55+
<dict>
56+
<key>UIApplicationSupportsMultipleScenes</key>
57+
<false/>
58+
<key>UISceneConfigurations</key>
59+
<dict>
60+
<key>UIWindowSceneSessionRoleApplication</key>
61+
<array>
62+
<dict>
63+
<key>UISceneClassName</key>
64+
<string>UIWindowScene</string>
65+
<key>UISceneDelegateClassName</key>
66+
<string>FlutterSceneDelegate</string>
67+
<key>UISceneConfigurationName</key>
68+
<string>flutter</string>
69+
<key>UISceneStoryboardFile</key>
70+
<string>Main</string>
71+
</dict>
72+
</array>
73+
</dict>
74+
</dict>
75+
<key>UIApplicationSupportsIndirectInputEvents</key>
76+
<true/>
77+
<key>UILaunchStoryboardName</key>
78+
<string>LaunchScreen</string>
79+
<key>UIMainStoryboardFile</key>
80+
<string>Main</string>
81+
<key>UIRequiresFullScreen</key>
82+
<false/>
83+
<key>UIStatusBarStyle</key>
84+
<string></string>
85+
<key>UISupportedInterfaceOrientations</key>
86+
<array>
87+
<string>UIInterfaceOrientationPortrait</string>
88+
</array>
89+
<key>UISupportedInterfaceOrientations~ipad</key>
90+
<array>
91+
<string>UIInterfaceOrientationLandscapeLeft</string>
92+
<string>UIInterfaceOrientationLandscapeRight</string>
93+
<string>UIInterfaceOrientationPortrait</string>
94+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
95+
</array>
96+
<key>UIViewControllerBasedStatusBarAppearance</key>
97+
<false/>
98+
<key>io.flutter.embedded_views_preview</key>
99+
<string>YES</string>
100+
</dict>
80101
</plist>

0 commit comments

Comments
 (0)