diff --git a/add_to_app/books/ios_books/Podfile b/add_to_app/books/ios_books/Podfile index b8246b032..abcdef648 100644 --- a/add_to_app/books/ios_books/Podfile +++ b/add_to_app/books/ios_books/Podfile @@ -1,5 +1,5 @@ # Uncomment the next line to define a global platform for your project -# platform :ios, '9.0' +platform :ios, '15.0' flutter_application_path = '../flutter_module_books/' load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') diff --git a/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/AppDelegate.swift b/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/AppDelegate.swift index a4ef063b3..b564ca073 100644 --- a/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/AppDelegate.swift +++ b/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/AppDelegate.swift @@ -2,20 +2,40 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import UIKit import Flutter +import UIKit -@UIApplicationMain +@main class AppDelegate: UIResponder, UIApplicationDelegate { - var window: UIWindow? + var flutterEngine: FlutterEngine? + + func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + // Instantiate Flutter engine + self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil) + self.flutterEngine?.run(withEntrypoint: nil) - var flutterEngine : FlutterEngine? + return true + } - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Instantiate Flutter engine - self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil) - self.flutterEngine?.run(withEntrypoint: nil) + func application( + _ application: UIApplication, + configurationForConnecting connectingSceneSession: UISceneSession, + options: UIScene.ConnectionOptions + ) -> UISceneConfiguration { + let configuration = UISceneConfiguration( + name: "Default Configuration", + sessionRole: connectingSceneSession.role + ) + configuration.delegateClass = FlutterSceneDelegate.self + return configuration + } - return true - } + func application( + _ application: UIApplication, + didDiscardSceneSessions sceneSessions: Set + ) { + } } diff --git a/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Debug.plist b/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Debug.plist index 72b874acd..c09fef963 100644 --- a/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Debug.plist +++ b/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Debug.plist @@ -20,6 +20,27 @@ 1 LSRequiresIPhoneOS + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + FlutterSceneDelegate + UISceneStoryboardFile + Main + + + + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile diff --git a/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Release.plist b/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Release.plist index 16be3b681..cf27efee8 100644 --- a/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Release.plist +++ b/add_to_app/fullscreen/ios_fullscreen/IOSFullScreen/Info-Release.plist @@ -20,6 +20,27 @@ 1 LSRequiresIPhoneOS + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + FlutterSceneDelegate + UISceneStoryboardFile + Main + + + + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile diff --git a/add_to_app/fullscreen/ios_fullscreen/Podfile b/add_to_app/fullscreen/ios_fullscreen/Podfile index 1daf6b963..db8e79871 100644 --- a/add_to_app/fullscreen/ios_fullscreen/Podfile +++ b/add_to_app/fullscreen/ios_fullscreen/Podfile @@ -1,5 +1,4 @@ -# Uncomment the next line to define a global platform for your project -# platform :ios, '9.0' +platform :ios, '15.0' flutter_application_path = '../flutter_module_fullscreen' load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') diff --git a/add_to_app/ios_content_resizing/ios_content_resizing/Podfile b/add_to_app/ios_content_resizing/ios_content_resizing/Podfile index a17a10562..edc9ce7bf 100644 --- a/add_to_app/ios_content_resizing/ios_content_resizing/Podfile +++ b/add_to_app/ios_content_resizing/ios_content_resizing/Podfile @@ -1,5 +1,5 @@ # Uncomment the next line to define a global platform for your project -# platform :ios, '15.0' +platform :ios, '15.0' flutter_application_path = '../flutter_module' load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') diff --git a/add_to_app/ios_content_resizing/ios_content_resizing/ios_content_resizing/SceneDelegate.swift b/add_to_app/ios_content_resizing/ios_content_resizing/ios_content_resizing/SceneDelegate.swift index a968d2935..17b7789af 100644 --- a/add_to_app/ios_content_resizing/ios_content_resizing/ios_content_resizing/SceneDelegate.swift +++ b/add_to_app/ios_content_resizing/ios_content_resizing/ios_content_resizing/SceneDelegate.swift @@ -5,48 +5,8 @@ // Created by Louise Hsu on 12/3/25. // +import Flutter import UIKit -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. - } - - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } - - +class SceneDelegate: FlutterSceneDelegate { } - diff --git a/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SceneDelegate.swift b/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SceneDelegate.swift index ae755e8c3..1c692f59e 100644 --- a/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SceneDelegate.swift +++ b/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SceneDelegate.swift @@ -2,31 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +import Flutter import UIKit /// The UIWindowSceneDelegate for the app. -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - var window: UIWindow? - - func scene( - _ scene: UIScene, willConnectTo session: UISceneSession, - options connectionOptions: UIScene.ConnectionOptions - ) { - guard let _ = (scene as? UIWindowScene) else { return } - } - - func sceneDidDisconnect(_ scene: UIScene) { - } - - func sceneDidBecomeActive(_ scene: UIScene) { - } - - func sceneWillResignActive(_ scene: UIScene) { - } - - func sceneWillEnterForeground(_ scene: UIScene) { - } - - func sceneDidEnterBackground(_ scene: UIScene) { - } +class SceneDelegate: FlutterSceneDelegate { } diff --git a/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SingleFlutterViewController.swift b/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SingleFlutterViewController.swift index 892c87c7a..a26db6f9a 100644 --- a/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SingleFlutterViewController.swift +++ b/add_to_app/multiple_flutters/multiple_flutters_ios/MultipleFluttersIos/SingleFlutterViewController.swift @@ -39,7 +39,7 @@ class SingleFlutterViewController: FlutterViewController, DataModelObserver { override func viewDidLoad() { super.viewDidLoad() channel = FlutterMethodChannel( - name: "multiple-flutters", binaryMessenger: self.engine!.binaryMessenger) + name: "multiple-flutters", binaryMessenger: self.engine.binaryMessenger) channel!.invokeMethod("setCount", arguments: DataModel.shared.count) let navController = self.navigationController! channel!.setMethodCallHandler { (call: FlutterMethodCall, result: @escaping FlutterResult) in diff --git a/add_to_app/multiple_flutters/multiple_flutters_ios/Podfile b/add_to_app/multiple_flutters/multiple_flutters_ios/Podfile index 64e1388e6..bc486e734 100644 --- a/add_to_app/multiple_flutters/multiple_flutters_ios/Podfile +++ b/add_to_app/multiple_flutters/multiple_flutters_ios/Podfile @@ -1,3 +1,5 @@ +platform :ios, '15.0' + # Copyright 2021 The Flutter team. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. diff --git a/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/AppDelegate.swift b/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/AppDelegate.swift index bb5ca8776..8aab277a5 100644 --- a/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/AppDelegate.swift +++ b/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/AppDelegate.swift @@ -2,22 +2,42 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import UIKit import Flutter import FlutterPluginRegistrant +import UIKit -@UIApplicationMain +@main class AppDelegate: UIResponder, UIApplicationDelegate { - var window: UIWindow? - - var flutterEngine : FlutterEngine? - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Instantiate Flutter engine - self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil) - self.flutterEngine?.run(withEntrypoint: nil) - GeneratedPluginRegistrant.register(with: self.flutterEngine!) + var flutterEngine: FlutterEngine? + + func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + // Instantiate Flutter engine + self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil) + self.flutterEngine?.run(withEntrypoint: nil) + GeneratedPluginRegistrant.register(with: self.flutterEngine!) + + return true + } + + func application( + _ application: UIApplication, + configurationForConnecting connectingSceneSession: UISceneSession, + options: UIScene.ConnectionOptions + ) -> UISceneConfiguration { + let configuration = UISceneConfiguration( + name: "Default Configuration", + sessionRole: connectingSceneSession.role + ) + configuration.delegateClass = FlutterSceneDelegate.self + return configuration + } - return true - } + func application( + _ application: UIApplication, + didDiscardSceneSessions sceneSessions: Set + ) { + } } diff --git a/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Info-Debug.plist b/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Info-Debug.plist index 72b874acd..c09fef963 100644 --- a/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Info-Debug.plist +++ b/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Info-Debug.plist @@ -20,6 +20,27 @@ 1 LSRequiresIPhoneOS + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + FlutterSceneDelegate + UISceneStoryboardFile + Main + + + + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile diff --git a/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Info-Release.plist b/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Info-Release.plist index 16be3b681..cf27efee8 100644 --- a/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Info-Release.plist +++ b/add_to_app/plugin/ios_using_plugin/IOSUsingPlugin/Info-Release.plist @@ -20,6 +20,27 @@ 1 LSRequiresIPhoneOS + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + FlutterSceneDelegate + UISceneStoryboardFile + Main + + + + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile diff --git a/add_to_app/plugin/ios_using_plugin/Podfile b/add_to_app/plugin/ios_using_plugin/Podfile index 726737d1b..9548552f2 100644 --- a/add_to_app/plugin/ios_using_plugin/Podfile +++ b/add_to_app/plugin/ios_using_plugin/Podfile @@ -1,5 +1,5 @@ # Uncomment the next line to define a global platform for your project -# platform :ios, '9.0' +platform :ios, '15.0' flutter_application_path = '../flutter_module_using_plugin' load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') diff --git a/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/AppDelegate.swift b/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/AppDelegate.swift index a4ef063b3..b564ca073 100644 --- a/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/AppDelegate.swift +++ b/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/AppDelegate.swift @@ -2,20 +2,40 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import UIKit import Flutter +import UIKit -@UIApplicationMain +@main class AppDelegate: UIResponder, UIApplicationDelegate { - var window: UIWindow? + var flutterEngine: FlutterEngine? + + func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + // Instantiate Flutter engine + self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil) + self.flutterEngine?.run(withEntrypoint: nil) - var flutterEngine : FlutterEngine? + return true + } - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Instantiate Flutter engine - self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil) - self.flutterEngine?.run(withEntrypoint: nil) + func application( + _ application: UIApplication, + configurationForConnecting connectingSceneSession: UISceneSession, + options: UIScene.ConnectionOptions + ) -> UISceneConfiguration { + let configuration = UISceneConfiguration( + name: "Default Configuration", + sessionRole: connectingSceneSession.role + ) + configuration.delegateClass = FlutterSceneDelegate.self + return configuration + } - return true - } + func application( + _ application: UIApplication, + didDiscardSceneSessions sceneSessions: Set + ) { + } } diff --git a/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Debug.plist b/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Debug.plist index 72b874acd..c09fef963 100644 --- a/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Debug.plist +++ b/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Debug.plist @@ -20,6 +20,27 @@ 1 LSRequiresIPhoneOS + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + FlutterSceneDelegate + UISceneStoryboardFile + Main + + + + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile diff --git a/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Release.plist b/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Release.plist index 16be3b681..cf27efee8 100644 --- a/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Release.plist +++ b/add_to_app/prebuilt_module/ios_using_prebuilt_module/IOSUsingPrebuiltModule/Info-Release.plist @@ -20,6 +20,27 @@ 1 LSRequiresIPhoneOS + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneClassName + UIWindowScene + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + FlutterSceneDelegate + UISceneStoryboardFile + Main + + + + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile