Skip to content

[app_extension_safe] Make macOS embedder extension safe  #124290

@cyanglaz

Description

@cyanglaz

NSApplication.sharedApplication is extension safe, so there is no need to eliminate the sharedApplication code from macOS embedder. For FlutterMacOS framework to work with extensions, we only need to add the fapplication-extension safe flag while building the framework.

When extension is running, the main bundle is different with running an app, so the FlutterDartProject.mm needs to be updated to search for FLTAssetsPath at the correct path.

Part of #124287

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.platform-macBuilding on or for macOS specificallyteam-macosOwned by the macOS platform teamtriaged-macosTriaged by the macOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions