Skip to content

Use updated .flutter-plugins-dependencies format in the Flutter Gradle plugin #157949

@matanlurey

Description

@matanlurey

While strictly speaking it depends on #157948, this could be started in parallel.


In #157948, we'll add dev_dependency: true|false to .flutter-plugins-dependencies.

This issue is tracking the Flutter Gradle plugin reading this new key/value pair, and on an explicit value of true, excluding a plugin from release branches. I say explicit value as we'll want a bit of backwards-compatibility, so in other words, I'd treat the following scenarios the following way:

{
  "name": "plugin-a",
  "path": "/path/to/plugin-a",
  "dependencies": ["plugin-b", "plugin-c"],
  "native_build": true
}

... should imply dev_dependency: false.

{
  "name": "plugin-a",
  "path": "/path/to/plugin-a",
  "dependencies": ["plugin-b", "plugin-c"],
  "native_build": true,
  "dev_dependency": false
}

... should specify dev_dependency: false.

{
  "name": "plugin-a",
  "path": "/path/to/plugin-a",
  "dependencies": ["plugin-b", "plugin-c"],
  "native_build": true,
  "dev_dependency": true
}

... should specify dev_dependency: true.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listfyi-toolFor the attention of Flutter Tool teamplatform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions