Skip to content

Commit

Permalink
chore: add VS Code launch configurations for production and staging e…
Browse files Browse the repository at this point in the history
…nvironments

- Added "Flutter: Run production" configuration with production flavor and env.json settings
- Added "Flutter: Run staging" configuration with staging flavor and env.staging.json settings
- Ensured both configurations run in release mode
  • Loading branch information
salahamassi authored Sep 13, 2024
1 parent 80afe43 commit d825e82
Showing 1 changed file with 23 additions and 28 deletions.
51 changes: 23 additions & 28 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "run app staging",
"request": "launch",
"type": "dart",
"args": [
"--flavor",
"staging" //development or staging or production
]
},
{
"name": "example (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "run app production",
"request": "launch",
"type": "dart",
"args": [
"--flavor",
"production" //development or staging or production
]
},
{
"name": "Flutter: Run production",
"request": "launch",
"type": "dart",
"program": "${workspaceFolder}/lib/main.dart",
"args": [
"--flavor", "Production",
"--dart-define-from-file=env.json",
"--release"
]
},
{
"name": "Flutter: Run staging",
"request": "launch",
"type": "dart",
"program": "${workspaceFolder}/lib/main.dart",
"args": [
"--flavor", "Staging",
"--dart-define-from-file=env.staging.json",
"--release"
]
}
]
}
}

0 comments on commit d825e82

Please sign in to comment.