vsts-flutter-tasks icon indicating copy to clipboard operation
vsts-flutter-tasks copied to clipboard

Build task does not support --dart-define

Open maks opened this issue 4 years ago • 3 comments
trafficstars

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

maks avatar Apr 06 '21 04:04 maks

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.

maks avatar Apr 06 '21 04:04 maks

+1

spekary avatar Apr 28 '21 20:04 spekary

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

aloisdeniel avatar May 04 '21 09:05 aloisdeniel