Skip to content

Commit 7ce7b34

Browse files
Merge pull request #1474 from cypherstack/ios-27-required-changes
UIScene related changes required by flutter for ios 27
2 parents 15ed969 + 8185f05 commit 7ce7b34

2 files changed

Lines changed: 26 additions & 2 deletions

File tree

‎ios/Runner/AppDelegate.swift‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@ import UIKit
22
import Flutter
33

44
@main
5-
@objc class AppDelegate: FlutterAppDelegate {
5+
@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
66
override func application(
77
_ application: UIApplication,
88
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
99
) -> Bool {
1010
var flutter_native_splash = 1
1111
UIApplication.shared.isStatusBarHidden = false
1212

13-
GeneratedPluginRegistrant.register(with: self)
1413
if #available(iOS 10.0, *) {
1514
UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
1615
}
1716
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
1817
}
18+
19+
func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
20+
GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
21+
}
1922
}

‎scripts/app_config/templates/ios/Runner/Info.plist‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,27 @@
3636
<string>This app requires Face ID permissions so that the user can securely lock their wallet if their device uses Face ID. It will be useful feature for all users, and especially those prone to forget their login pin on iPhones where Touch ID is not available.</string>
3737
<key>NSPhotoLibraryUsageDescription</key>
3838
<string>This app only reads images you select, such as a picture containing a QR code to scan. It will never access your photo library on its own.</string>
39+
<key>UIApplicationSceneManifest</key>
40+
<dict>
41+
<key>UIApplicationSupportsMultipleScenes</key>
42+
<false/>
43+
<key>UISceneConfigurations</key>
44+
<dict>
45+
<key>UIWindowSceneSessionRoleApplication</key>
46+
<array>
47+
<dict>
48+
<key>UISceneClassName</key>
49+
<string>UIWindowScene</string>
50+
<key>UISceneConfigurationName</key>
51+
<string>flutter</string>
52+
<key>UISceneDelegateClassName</key>
53+
<string>FlutterSceneDelegate</string>
54+
<key>UISceneStoryboardFile</key>
55+
<string>Main</string>
56+
</dict>
57+
</array>
58+
</dict>
59+
</dict>
3960
<key>UIFileSharingEnabled</key>
4061
<true/>
4162
<key>UILaunchStoryboardName</key>

0 commit comments

Comments
 (0)