Skip to content

Dart plugin registration is being included in custom embedders #103660

@stuartmorgan-g

Description

@stuartmorgan-g

Per a discussion in Discord, running flutter build bundle as part of a custom embedding build flow is apparently getting (at least in debug mode) the Dart plugin registration generated. This breaks the intent that the registration is embedding-specific, driven by the embedding-specific dartPluginClass entries in the pubspec.

This will be problematic for custom embeddings expecting the default platform channel--including existing implementations that used to work--as we move to diverging per-package platform channels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: pluginsSupport for writing, building, and running plugin packagesteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions