vsts-flutter-tasks
vsts-flutter-tasks copied to clipboard
Build task does not support --dart-define
trafficstars
There is currently no way to specify --dart-define for the Build task.
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.
+1
I just added a generic additionalArguments to the build task to allow to pass custom arguments like this!