chore: add iOS integration test CI (#4822)

This commit is contained in:
Lucas.Xu
2024-03-05 17:20:27 +08:00
committed by GitHub
parent 2ec6250ddd
commit b05897d3ab
95 changed files with 520 additions and 357 deletions

View File

@ -1,13 +1,5 @@
#!/bin/bash
no_pub_get=false
while getopts 's' flag; do
case "${flag}" in
s) no_pub_get=true ;;
esac
done
echo "Generating flowy icon files"
# Store the current working directory

View File

@ -1,13 +1,5 @@
#!/bin/bash
no_pub_get=false
while getopts 's' flag; do
case "${flag}" in
s) no_pub_get=true ;;
esac
done
# Store the current working directory
original_dir=$(pwd)
@ -19,9 +11,7 @@ cd ../../../appflowy_flutter
# Navigate to the appflowy_flutter directory and generate files
echo "Generating files for appflowy_flutter"
if [ "$no_pub_get" = false ]; then
flutter packages pub get >/dev/null 2>&1
fi
flutter packages pub get >/dev/null 2>&1
dart run build_runner build -d
echo "Done generating files for appflowy_flutter"
@ -36,9 +26,7 @@ for d in */; do
if [ -f "pubspec.yaml" ]; then
echo "Generating freezed files in $d..."
echo "Please wait while we clean the project and fetch the dependencies."
if [ "$no_pub_get" = false ]; then
flutter packages pub get >/dev/null 2>&1
fi
flutter packages pub get >/dev/null 2>&1
dart run build_runner build -d
echo "Done running build command in $d"
else

View File

@ -1,13 +1,5 @@
#!/bin/bash
no_pub_get=false
while getopts 's' flag; do
case "${flag}" in
s) no_pub_get=true ;;
esac
done
echo "Generating language files"
# Store the current working directory
@ -24,6 +16,9 @@ rm -rf assets/translations/
mkdir -p assets/translations/
cp -f ../resources/translations/*.json assets/translations/
# the ci alwayas return a 'null check operator used on a null value' error.
# so we force to exec the below command to avoid the error.
# https://github.com/dart-lang/pub/issues/3314
flutter pub get
flutter packages pub get