Skip to content

Instantly share code, notes, and snippets.

@PlugFox
Created January 25, 2023 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PlugFox/a4da7612afbaf782fd5db074ba618e35 to your computer and use it in GitHub Desktop.
Save PlugFox/a4da7612afbaf782fd5db074ba618e35 to your computer and use it in GitHub Desktop.
VS Code tasks for flutter
{
"version": "2.0.0",
"tasks": [
{
"type": "flutter",
"command": "flutter",
"options": {
"cwd": "packages/sd_market/"
},
"args": [
"build",
"${input:typeOs}",
"--${input:appBuildConfiguration}",
"--flavor=${input:appFlavor}"
],
"group": "build",
"label": "Build Android"
},
],
"inputs": [
{
"id": "appBuildConfiguration",
"description": "Build configuration:",
"default": "release",
"type": "pickString",
"options": [
"debug",
"release",
"profile"
]
},
{
"id": "typeOs",
"description": "Mobile OS:",
"default": "apk",
"type": "pickString",
"options": [
"apk",
"ios"
]
},
{
"id": "appFlavor",
"description": "Flavor value:",
"default": "prod",
"type": "pickString",
"options": [
"prod",
"dev",
"mock"
]
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment