chore: upgrade flutter to 3.13.9 (#3936)

This commit is contained in:
Lucas.Xu
2023-11-14 22:33:07 +08:00
committed by GitHub
parent 1c500fbfc5
commit 6a9866b9d2
116 changed files with 312 additions and 260 deletions

View File

@ -4,7 +4,7 @@ no_pub_get=false
while getopts 's' flag; do
case "${flag}" in
s) no_pub_get=true ;;
s) no_pub_get=true ;;
esac
done
@ -23,7 +23,7 @@ if [ "$no_pub_get" = false ]; then
flutter packages pub get >/dev/null 2>&1
fi
dart run build_runner clean && dart run build_runner build -d
dart run build_runner build -d
echo "Done generating files for appflowy_flutter"
echo "Generating files for packages"
@ -39,7 +39,7 @@ for d in */; do
if [ "$no_pub_get" = false ]; then
flutter packages pub get >/dev/null 2>&1
fi
dart run build_runner clean && dart run build_runner build -d
dart run build_runner build -d
echo "Done running build command in $d"
else
echo "No pubspec.yaml found in $d, it can\'t be a Dart project. Skipping."

View File

@ -39,7 +39,7 @@ RUN source ~/.cargo/env && \
RUN sudo pacman -S --noconfirm git tar gtk3
RUN curl -sSfL \
--output flutter.tar.xz \
https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.10.1-stable.tar.xz && \
https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.13.9-stable.tar.xz && \
tar -xf flutter.tar.xz && \
rm flutter.tar.xz
RUN flutter config --enable-linux-desktop

View File

@ -44,9 +44,9 @@ printMessage "Setting up Flutter"
# Get the current Flutter version
FLUTTER_VERSION=$(flutter --version | grep -oE 'Flutter [^ ]+' | grep -oE '[^ ]+$')
# Check if the current version is 3.10.1
if [ "$FLUTTER_VERSION" = "3.10.1" ]; then
echo "Flutter version is already 3.10.1"
# Check if the current version is 3.13.9
if [ "$FLUTTER_VERSION" = "3.13.9" ]; then
echo "Flutter version is already 3.13.9"
else
# Get the path to the Flutter SDK
FLUTTER_PATH=$(which flutter)
@ -55,12 +55,12 @@ else
current_dir=$(pwd)
cd $FLUTTER_PATH
# Use git to checkout version 3.10.1 of Flutter
git checkout 3.10.1
# Use git to checkout version 3.13.9 of Flutter
git checkout 3.13.9
# Get back to current working directory
cd "$current_dir"
echo "Switched to Flutter version 3.10.1"
echo "Switched to Flutter version 3.13.9"
fi
# Enable linux desktop

View File

@ -38,9 +38,9 @@ fi
printMessage "Setting up Flutter"
# Get the current Flutter version
FLUTTER_VERSION=$(flutter --version | grep -oP 'Flutter \K\S+')
# Check if the current version is 3.10.1
if [ "$FLUTTER_VERSION" = "3.10.1" ]; then
echo "Flutter version is already 3.10.1"
# Check if the current version is 3.13.9
if [ "$FLUTTER_VERSION" = "3.13.9" ]; then
echo "Flutter version is already 3.13.9"
else
# Get the path to the Flutter SDK
FLUTTER_PATH=$(which flutter)
@ -49,12 +49,12 @@ else
current_dir=$(pwd)
cd $FLUTTER_PATH
# Use git to checkout version 3.10.1 of Flutter
git checkout 3.10.1
# Use git to checkout version 3.13.9 of Flutter
git checkout 3.13.9
# Get back to current working directory
cd "$current_dir"
echo "Switched to Flutter version 3.10.1"
echo "Switched to Flutter version 3.13.9"
fi
# Enable linux desktop

View File

@ -41,9 +41,9 @@ printMessage "Setting up Flutter"
# Get the current Flutter version
FLUTTER_VERSION=$(flutter --version | grep -oE 'Flutter [^ ]+' | grep -oE '[^ ]+$')
# Check if the current version is 3.10.1
if [ "$FLUTTER_VERSION" = "3.10.1" ]; then
echo "Flutter version is already 3.10.1"
# Check if the current version is 3.13.9
if [ "$FLUTTER_VERSION" = "3.13.9" ]; then
echo "Flutter version is already 3.13.9"
else
# Get the path to the Flutter SDK
FLUTTER_PATH=$(which flutter)
@ -52,12 +52,12 @@ else
current_dir=$(pwd)
cd $FLUTTER_PATH
# Use git to checkout version 3.10.1 of Flutter
git checkout 3.10.1
# Use git to checkout version 3.13.9 of Flutter
git checkout 3.13.9
# Get back to current working directory
cd "$current_dir"
echo "Switched to Flutter version 3.10.1"
echo "Switched to Flutter version 3.13.9"
fi
# Enable linux desktop

View File

@ -48,9 +48,9 @@ fi
printMessage "Setting up Flutter"
# Get the current Flutter version
FLUTTER_VERSION=$(flutter --version | grep -oP 'Flutter \K\S+')
# Check if the current version is 3.10.1
if [ "$FLUTTER_VERSION" = "3.10.1" ]; then
echo "Flutter version is already 3.10.1"
# Check if the current version is 3.13.9
if [ "$FLUTTER_VERSION" = "3.13.9" ]; then
echo "Flutter version is already 3.13.9"
else
# Get the path to the Flutter SDK
FLUTTER_PATH=$(which flutter)
@ -59,12 +59,12 @@ else
current_dir=$(pwd)
cd $FLUTTER_PATH
# Use git to checkout version 3.10.1 of Flutter
git checkout 3.10.1
# Use git to checkout version 3.13.9 of Flutter
git checkout 3.13.9
# Get back to current working directory
cd "$current_dir"
echo "Switched to Flutter version 3.10.1"
echo "Switched to Flutter version 3.13.9"
fi
# Add pub cache and cargo to PATH