aloisdeniel / vsts-flutter-tasks

Flutter build tasks for Azure DevOps Pipelines/TFS.
https://marketplace.visualstudio.com/items?itemName=aloisdeniel.flutter
105 stars 83 forks source link

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

Open maks opened 3 years ago

maks commented 3 years ago

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

maks commented 3 years ago

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 commented 3 years ago

+1

aloisdeniel commented 3 years ago

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