flutter/packages/flutter_tools/templates
gaaclarke 3d8fa621c1
[Reland3] Implements UISceneDelegate dynamically w/ FlutterLaunchEngine (#169276) (#169365)
## **BREAKING CHANGE**

Adopting Apple's UISceneDelegate protocol shifts the initialization
order of apps. For the common cases we've made sure they will work
without change. The one case that will require a change is any app that
in `-[UIApplicateDelegate didFinishLaunchingWithOptions:]` assumes that
`UIApplicationDelegate.window.rootViewController` is a
`FlutterViewController` instance. Users should follow the [migration
guide](https://docs.google.com/document/d/16WsqYbANmhupw-gxGPQPZ9B3yz1YBIviS-N1UyIQNSE/edit?tab=t.0#heading=h.txry2otwqko3)
to update that usage.

## Changes since revert
It's been rebased onto the FlutterPluginRegistrant PR which was used for
migration. The dynamic selection of the UISceneDelegate has been
removed, instead there is a flutter tool migration to the Info.plist.

## Description
fixes: https://github.com/flutter/flutter/issues/167267

design doc:


https://docs.google.com/document/d/1ZfcQOs-UKRa9jsFG84-MTFeibZTLKCvPQLxF2eskx44/edit?tab=t.0

relands https://github.com/flutter/flutter/pull/168396 
relands https://github.com/flutter/flutter/pull/168914
relands https://github.com/flutter/flutter/pull/169276

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.
2025-05-30 20:57:40 +00:00
..
app [Reland3] Implements UISceneDelegate dynamically w/ FlutterLaunchEngine (#169276) (#169365) 2025-05-30 20:57:40 +00:00
app_integration_test/integration_test Switch to more reliable flutter.dev link destinations in the tool (#150587) 2024-06-26 23:30:39 +00:00
app_test_widget/test [flutter_tools] Use proper project name in templates (#96373) 2022-02-02 06:50:14 -08:00
cocoapods macOS: Update minimum macOS version to 10.15 (#168101) 2025-05-01 04:02:25 +00:00
module [Reland3] Implements UISceneDelegate dynamically w/ FlutterLaunchEngine (#169276) (#169365) 2025-05-30 20:57:40 +00:00
package Add /coverage/ to .gitignore.tmp (#169387) 2025-05-26 16:55:08 +00:00
package_ffi Add /coverage/ to .gitignore.tmp (#169387) 2025-05-26 16:55:08 +00:00
plugin iOS: Update minimum iOS version to 13.0 (#167737) 2025-04-24 20:15:13 +00:00
plugin_cocoapods Add PrivacyInfo.xcprivacy to macOS plugin template (#155570) 2024-09-25 05:30:53 +00:00
plugin_ffi iOS: Update minimum iOS version to 13.0 (#167737) 2025-04-24 20:15:13 +00:00
plugin_shared Add /coverage/ to .gitignore.tmp (#169387) 2025-05-26 16:55:08 +00:00
plugin_swift_package_manager Add PrivacyInfo.xcprivacy to macOS plugin template (#155570) 2024-09-25 05:30:53 +00:00
widget_preview_scaffold Manually update vector_math package (#169476) 2025-05-28 15:55:01 +00:00
xcode/ios/custom_application_bundle iOS: Update minimum iOS version to 13.0 (#167737) 2025-04-24 20:15:13 +00:00
template_manifest.json Reland "[ Widget Preview ] Add initial support for communications over the Dart Tooling Daemon (DTD) (#166698)" (#166877) 2025-04-11 14:55:29 +00:00