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

Build task does not support --dart-define #80

Open
maks opened this issue Apr 6, 2021 · 3 comments
Open

Build task does not support --dart-define #80

maks opened this issue Apr 6, 2021 · 3 comments

Comments

@maks
Copy link

maks commented Apr 6, 2021

There is currently no way to specify --dart-define for the Build task.

@maks
Copy link
Author

maks commented Apr 6, 2021

I should say its easy enough to define a custom task to do this:

- task: CmdLine@2
    displayName: "Android build"
    inputs:
          script: "$(FlutterToolPath)/flutter build appbundle --dart-define MY_CONFIG=FooBar"

but it would be nice to have this supported in the built-in FlutterBuild task.

@spekary
Copy link

spekary commented Apr 28, 2021

+1

@aloisdeniel
Copy link
Owner

I just added a generic additionalArguments to the build task to allow to pass custom arguments like this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants