Skip to content

It is unclear if the Flavors feature is meant to be supported for macOS #139774

@andrewkolos

Description

@andrewkolos

Context

The Flavors feature allows flutter users to have multiple native build configurations that the user can choose between by using the --flavor option in flutter run and flutter build. See Create flavors of a Flutter app to learn more about the feature.

Problem

The feature works (to my knowledge) for Android, iOS, and macOS. However, macOS support is not documented and is not under test1. This was brought to attention during review of #139045, which will explicitly disable use of --flavor in flutter run for platforms that don't support it.

The question then is, is macOS meant to be supported by the flavors feature? At the time of its introduction, it was a decently popular request (see #64088), which makes me question whether I should make it explicitly unsupported.

Footnotes

  1. It was initially under test, but it doesn't look like the test ever passed to begin with? See https://github.com/flutter/flutter/pull/125581

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listplatform-macBuilding on or for macOS specificallyteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.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