mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
iOS extensions forbids the usage of UIApplication.sharedApplication. This PR refactors the engine to use UISceneAPI when darwin_extension_safe flag is on. Using UISceneAPI can help avoid the usage of `UIApplication.sharedApplication` as much as possible. This PR also added a new `_extension_safe` variant for the engine build so all the logic with the `darwin_extension_safe` flag is on can be tested separately. This PR doesn't enable the engine to build for the extension even when darwin_extension_safe is true. part of https://github.com/flutter/flutter/issues/124289 There are several issues related to UIApplication life cycle and I manually tested they still work with the scene API: [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
Flutter Common
The bottom of the dependency graph for Flutter. Useful for static constants. Please don't put too much in here.