-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation about need tools and versions to build our app (#963)
- Add documentation about need tools and versions to build our app - Add a example launch.json file - Add optional support for version manager 'asdf' - Add a clean_build.sh script to execute fast a clean build
- Loading branch information
Showing
5 changed files
with
215 additions
and
13 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
flutter 3.19.6 |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
// 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 | ||
|
||
// This is our example launch config. Set the prefered flavor, SURVEY_BASE_URL and SENTRY_URL | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "stage_recipients_app (debug mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "debug", | ||
"program": "lib/main.dart", | ||
"args": [ | ||
"--flavor", | ||
"stage", | ||
"--dart-define", | ||
"SURVEY_BASE_URL=staging.socialincome.org", | ||
"--dart-define", | ||
"SENTRY_URL=FILL IN SENTRY URL", | ||
|
||
], | ||
}, | ||
{ | ||
"name": "stage_recipients_app (profile mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "profile", | ||
"program": "lib/main.dart", | ||
"args": [ | ||
"--flavor", | ||
"stage", | ||
"--dart-define", | ||
"SURVEY_BASE_URL=staging.socialincome.org", | ||
"--dart-define", | ||
"SENTRY_URL=FILL IN SENTRY URL", | ||
], | ||
}, | ||
{ | ||
"name": "stage_recipients_app (release mode)", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "release", | ||
"program": "lib/main.dart", | ||
"args": [ | ||
"--flavor", | ||
"stage", | ||
"--dart-define", | ||
"SURVEY_BASE_URL=staging.socialincome.org", | ||
"--dart-define", | ||
"SENTRY_URL=FILL IN SENTRY URL", | ||
], | ||
} | ||
] | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/zsh | ||
|
||
# Exit on error | ||
set -e | ||
|
||
# Check if Flutter is installed | ||
echo "Verify Flutter is installed..." | ||
if ! command -v flutter &> /dev/null; then | ||
echo "Error: Flutter is not installed" | ||
exit 1 | ||
fi | ||
|
||
# Verify Flutter version | ||
echo "Verify Flutter version..." | ||
REQUIRED_VERSION="3.19.6" | ||
CURRENT_VERSION=$(flutter --version | head -n 1 | awk '{print $2}') | ||
if [ "$CURRENT_VERSION" != "$REQUIRED_VERSION" ]; then | ||
echo "Error: Flutter version $REQUIRED_VERSION is required (current: $CURRENT_VERSION)" | ||
exit 1 | ||
fi | ||
|
||
echo "Cleaning Flutter build..." | ||
flutter clean | ||
|
||
echo "Getting dependencies..." | ||
flutter pub get | ||
|
||
echo "Running build runner..." | ||
dart run build_runner build --delete-conflicting-outputs | ||
|
||
echo "Generating localizations..." | ||
flutter gen-l10n | ||
|
||
echo "Build completed successfully!" |
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