26ee7af670
(cherry picked from commit c91871267d930213fa51b37e677a34dca1a89daa)
34 lines
996 B
Bash
34 lines
996 B
Bash
#!/usr/bin/env bash
|
|
# fail if any commands fails
|
|
set -e
|
|
# debug log
|
|
set -x
|
|
|
|
cd core
|
|
flutter pub get
|
|
|
|
## Install necessary pods
|
|
# cd ../ios
|
|
# flutter pub get && pod install
|
|
|
|
cd ../model
|
|
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
|
|
|
cd ../contact
|
|
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
|
|
|
cd ../forward
|
|
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
|
|
|
|
cd ../fcm
|
|
flutter pub get && dart run build_runner build --delete-conflicting-outputs
|
|
|
|
cd ..
|
|
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
|