Skip to content

Remove dev_dependencys from generated plugin registrants on all platforms #161348

@camsim99

Description

@camsim99

#161343 will remove dev dependencies from the generated plugin registrant for Android as part of a fix for enabling dev dependncies being removed from release builds (#160407).

We should follow up that PR by doing the same for all platforms, just not Android. This is what the change for Android looked like for context:

Future<void> _writeAndroidPluginRegistrant(FlutterProject project, List<Plugin> plugins, {required bool releaseMode}) async {
  Iterable<Plugin> methodChannelPlugins = _filterMethodChannelPlugins(plugins, AndroidPlugin.kConfigKey);
  if (releaseMode) {
    methodChannelPlugins = methodChannelPlugins.where((Plugin p) => !p.isDevDependency);
  }

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-androidTriaged by Android platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions