Move scripts to a dedicated directory

(cherry picked from commit df59d6ca54dc5b4bf88f3ee81c2c09cc23d925b7)
This commit is contained in:
Nguyen Thai
2024-01-10 11:42:04 +07:00
committed by Dat H. Pham
parent 705a54ba5c
commit 3c7c7249d7
13 changed files with 57 additions and 29 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -eux
bundle exec fastlane dev
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -eux
bundle exec fastlane release
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
set -eux
flutter build web --profile --verbose --base-href "/${GITHUB_REPOSITORY##*/}/$FOLDER/"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
set -eux
sed -i "s|SERVER_URL=.*|SERVER_URL=https://apisix.upn.integration-open-paas.org/|g" env.file
sed -i "s|DOMAIN_REDIRECT_URL=.*|DOMAIN_REDIRECT_URL=https://$GITHUB_REPOSITORY_OWNER.github.io/${GITHUB_REPOSITORY##*/}/$FOLDER|g" env.file
echo "URL=https://$GITHUB_REPOSITORY_OWNER.github.io/${GITHUB_REPOSITORY##*/}/$FOLDER" >> $GITHUB_OUTPUT
+36
View File
@@ -0,0 +1,36 @@
#!/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 ../email_recovery
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
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
echo "$PLAY_STORE_UPLOAD_KEY_BASE64" | base64 --decode > app/keystore.jks
echo "$PLAY_STORE_KEY_INFO_BASE64" | base64 --decode > key.properties
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
echo "$FIREBASE_ENV" > ./configurations/env.fcm
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
set -eux
flutter pub get
pod install && pod update
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -eux
if [[ "$MODULES" == "default" ]]; then
flutter test -r json > test-report-"$MODULES".json
else
flutter test -r json "$MODULES" > test-report-"$MODULES".json
fi