-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add VS Code launch configurations for production and staging e…
…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
1 parent
80afe43
commit d825e82
Showing
1 changed file
with
23 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
] | ||
} | ||
} |