From 65d3064ba919daa8384314c19dfeabcbc95c1d39 Mon Sep 17 00:00:00 2001 From: Eric Windmill Date: Tue, 6 Aug 2024 09:25:41 -0400 Subject: [PATCH] add clean script --- tool/flutter_ci_script_master.sh | 3 ++- tool/flutter_clean_script.sh | 32 ++++++++++++++++++++++---------- 2 files changed, 24 insertions(+), 11 deletions(-) mode change 100644 => 100755 tool/flutter_clean_script.sh diff --git a/tool/flutter_ci_script_master.sh b/tool/flutter_ci_script_master.sh index 4a9f27318a3..ccaf11d5784 100755 --- a/tool/flutter_ci_script_master.sh +++ b/tool/flutter_ci_script_master.sh @@ -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" diff --git a/tool/flutter_clean_script.sh b/tool/flutter_clean_script.sh old mode 100644 new mode 100755 index d67c4bf4ac1..33a26070f28 --- a/tool/flutter_clean_script.sh +++ b/tool/flutter_clean_script.sh @@ -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" @@ -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