From ff1052e54a7c95a80528caa277d6f5eef0284f8a Mon Sep 17 00:00:00 2001 From: Dat PHAM HOANG Date: Tue, 24 May 2022 15:15:56 +0700 Subject: [PATCH] add prebuild script --- prebuild.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 prebuild.sh diff --git a/prebuild.sh b/prebuild.sh new file mode 100644 index 000000000..9b2c0dcd6 --- /dev/null +++ b/prebuild.sh @@ -0,0 +1,22 @@ +#!/bin/bash +echo Pre-build ... + +cd core +flutter pub get + +# Install necessary pods +cd ../ios +flutter pub get && pod install + +cd ../model +flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs + +cd ../contact +flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs + +cd .. +flutter pub get && flutter pub run intl_generator:extract_to_arb --output-dir=./lib/l10n lib/main/localizations/app_localizations.dart + +flutter pub get && flutter pub run intl_generator:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/main/localizations/app_localizations.dart lib/l10n/intl*.arb + +echo \[Completed\] pre-build!!!