Skip to content

Commit

Permalink
add clean script
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwindmill committed Aug 6, 2024
1 parent 150b01d commit 65d3064
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 11 deletions.
3 changes: 2 additions & 1 deletion tool/flutter_ci_script_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ declare -ar PROJECT_NAMES=(
"experimental/pedometer"
"experimental/pedometer/example"
"experimental/varfont_shader_puzzle"
"experimental/web_dashboard"
# TODO ewindmill -- whereNotNull deprecated in dart:collection
# "experimental/web_dashboard"
"flutter_maps_firestore"
"form_app"
"game_template"
Expand Down
32 changes: 22 additions & 10 deletions tool/flutter_clean_script.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -e

flutter doctor -v

declare -ar PROJECT_NAMES=(
"add_to_app/android_view/flutter_module_using_plugin"
"add_to_app/books/flutter_module_books"
Expand Down Expand Up @@ -59,16 +61,26 @@ declare -ar PROJECT_NAMES=(
"web/samples_index"
)

for PROJECT_NAME in ${PROJECT_NAMES}
do
echo "== Cleaning '${PROJECT_NAME}' with Flutter clean =="
pushd "${PROJECT_NAME}"
echo "--- Running flutter clean and flutter pub get for each sample ---"

for PROJECT_NAME in "${PROJECT_NAMES[@]}"
do
echo "== Cleaning '${PROJECT_NAME}' with Flutter clean =="
pushd "${PROJECT_NAME}"

# run `flutter clean` for project
flutter clean

# Grab packages.
flutter pub get

popd
done





# run `flutter clean` for project
flutter clean
echo "--- Success ---"

# Grab packages.
flutter pub get

popd
done

0 comments on commit 65d3064

Please sign in to comment.