From 15ee722cb71483f4cad78d2a8b8c62283410da13 Mon Sep 17 00:00:00 2001 From: dab246 Date: Thu, 11 Apr 2024 09:07:27 +0700 Subject: [PATCH] TF-2426 Fix build ci failed with build_runner error --- scripts/prebuild.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/scripts/prebuild.sh b/scripts/prebuild.sh index 0b2a7b121c..9147b9bf4c 100755 --- a/scripts/prebuild.sh +++ b/scripts/prebuild.sh @@ -12,28 +12,29 @@ flutter pub get # flutter pub get && pod install cd ../model -flutter pub get && dart run build_runner build --delete-conflicting-outputs +flutter clean && flutter pub get && dart run build_runner build --delete-conflicting-outputs cd ../contact -flutter pub get && dart run build_runner build --delete-conflicting-outputs +flutter clean && flutter pub get && dart run build_runner build --delete-conflicting-outputs cd ../forward -flutter pub get && dart run build_runner build --delete-conflicting-outputs +flutter clean && flutter pub get && dart run build_runner build --delete-conflicting-outputs cd ../rule_filter -flutter pub get && dart run build_runner build --delete-conflicting-outputs +flutter clean && flutter pub get && dart run build_runner build --delete-conflicting-outputs cd ../fcm -flutter pub get && dart run build_runner build --delete-conflicting-outputs +flutter clean && flutter pub get && dart run build_runner build --delete-conflicting-outputs cd ../email_recovery -flutter pub get && dart run build_runner build --delete-conflicting-outputs +flutter clean && flutter pub get && dart run build_runner build --delete-conflicting-outputs cd ../server_settings -flutter pub get && dart run build_runner build --delete-conflicting-outputs +flutter clean && flutter pub get && dart run build_runner build --delete-conflicting-outputs cd .. -flutter pub get \ +flutter clean \ + && flutter pub get \ && dart run build_runner build --delete-conflicting-outputs \ && dart run intl_generator:extract_to_arb --output-dir=./lib/l10n lib/main/localizations/app_localizations.dart \ && dart run intl_generator:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/main/localizations/app_localizations.dart lib/l10n/intl*.arb