Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of available build targets in machine-readable format #95080

Open
m0nac0 opened this issue Dec 11, 2021 · 2 comments
Open

List of available build targets in machine-readable format #95080

m0nac0 opened this issue Dec 11, 2021 · 2 comments
Labels
a: build Building flutter applications with the tool c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter P3 Issues that are less important to the Flutter project team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team

Comments

@m0nac0
Copy link

m0nac0 commented Dec 11, 2021

Use case

Flutter (IDE) tools may want to access the list of available build targets (which users can see by running flutter build).

Is there currently any way to get a machine-readable list of available build targets? For available devices this is possible by running flutter devices --machine or by using flutter daemon. I haven't been able to find anything similar for build targets.

Proposal

If there is currently no such way, I'd like to propose adding the possibility to retrieve a list of available build targets
in a machine-readable format from the flutter tool.

@m0nac0
Copy link
Author

m0nac0 commented Dec 11, 2021

Alternatively, developers can manually maintain a static list of which build targets are supported on which platform.
Disadvantages are:

  • needs to be kept in sync with the build targets supported by flutter
  • does not respect feature flags (e.g. to enable desktop support)

@mamuseferha mamuseferha added in triage Presently being triaged by the triage team passed first triage c: proposal A detailed proposal for a change to Flutter tool Affects the "flutter" command-line tool. See also t: labels. a: build Building flutter applications with the tool and removed in triage Presently being triaged by the triage team labels Dec 13, 2021
@christopherfujino christopherfujino added P3 Issues that are less important to the Flutter project c: new feature Nothing broken; request for a new capability labels Dec 13, 2021
@christopherfujino
Copy link
Member

This is a good idea for a new feature request.

@flutter-triage-bot flutter-triage-bot bot added team-tool Owned by Flutter Tool team triaged-tool Triaged by Flutter Tool team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: build Building flutter applications with the tool c: new feature Nothing broken; request for a new capability c: proposal A detailed proposal for a change to Flutter P3 Issues that are less important to the Flutter project team-tool Owned by Flutter Tool team tool Affects the "flutter" command-line tool. See also t: labels. triaged-tool Triaged by Flutter Tool team
Projects
None yet
Development

No branches or pull requests

4 participants