Skip to content

Strip plugins created from dev_dependencies from release-mode apps #56591

@jonahwilliams

Description

@jonahwilliams

2024-11-21 update from @matanlurey:


Currently the flutter tool creates a plugin for all package dependencies, even though in the dev_dependencies section. We'd like to remove this behavior, since it can lead to plugins used for testing accidentally getting included in released builds. This will be a breaking change, so we can proceed in several steps.

  1. Compute both the current and dependencies-only plugin list and use the current strategy. If discrepancies are found, print a warning that this will be disabled in a future release and how to fix.

  2. Compute both the current and dependencies-only plugin list and use the dependencies only strategy. If discrepancies are found, print a warning/notification that certain plugins have been disabled and include how to fix.

  3. Remove the current strategy, remove the warning.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: buildBuilding flutter applications with the toola: pluginsSupport for writing, building, and running plugin packagesa: tests"flutter test", flutter_test, or one of our testsf: integration_testThe flutter/packages/integration_test pluginteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

Type

No type

Projects

Status

Future bugs/improvements

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions