chore: upgrade to flutter 3.19.0 (#4677)

* chore: upgrade to flutter 3.19.0

* chore: adjust to the latest flutter convention

* chore: update CI flutter version

* fix: flutter analyze

* fix: flutter analyze

* fix: flutter analyze

* chore: fix docker build
This commit is contained in:
Lucas.Xu
2024-02-19 12:49:55 +07:00
committed by GitHub
parent b2e55c4e2e
commit 252699d249
83 changed files with 286 additions and 407 deletions

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/beta/linux/flutter_linux_3.18.0-0.2.pre-beta.tar.xz && \
https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.19.0-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.18.0-0.2.pre2
if [ "$FLUTTER_VERSION" = "3.18.0-0.2.pre2" ]; then
echo "Flutter version is already 3.18.0-0.2.pre2"
# Check if the current version is 3.19.0
if [ "$FLUTTER_VERSION" = "3.19.0" ]; then
echo "Flutter version is already 3.19.0"
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.18.0-0.2.pre2 of Flutter
git checkout 3.18.0-0.2.pre2
# Use git to checkout version 3.19.0 of Flutter
git checkout 3.19.0
# Get back to current working directory
cd "$current_dir"
echo "Switched to Flutter version 3.18.0-0.2.pre2"
echo "Switched to Flutter version 3.19.0"
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.18.0-0.2.pre2
if [ "$FLUTTER_VERSION" = "3.18.0-0.2.pre2" ]; then
echo "Flutter version is already 3.18.0-0.2.pre2"
# Check if the current version is 3.19.0
if [ "$FLUTTER_VERSION" = "3.19.0" ]; then
echo "Flutter version is already 3.19.0"
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.18.0-0.2.pre2 of Flutter
git checkout 3.18.0-0.2.pre2
# Use git to checkout version 3.19.0 of Flutter
git checkout 3.19.0
# Get back to current working directory
cd "$current_dir"
echo "Switched to Flutter version 3.18.0-0.2.pre2"
echo "Switched to Flutter version 3.19.0"
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.18.0-0.2.pre2
if [ "$FLUTTER_VERSION" = "3.18.0-0.2.pre2" ]; then
echo "Flutter version is already 3.18.0-0.2.pre2"
# Check if the current version is 3.19.0
if [ "$FLUTTER_VERSION" = "3.19.0" ]; then
echo "Flutter version is already 3.19.0"
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.18.0-0.2.pre2 of Flutter
git checkout 3.18.0-0.2.pre2
# Use git to checkout version 3.19.0 of Flutter
git checkout 3.19.0
# Get back to current working directory
cd "$current_dir"
echo "Switched to Flutter version 3.18.0-0.2.pre2"
echo "Switched to Flutter version 3.19.0"
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.18.0-0.2.pre2
if [ "$FLUTTER_VERSION" = "3.18.0-0.2.pre2" ]; then
echo "Flutter version is already 3.18.0-0.2.pre2"
# Check if the current version is 3.19.0
if [ "$FLUTTER_VERSION" = "3.19.0" ]; then
echo "Flutter version is already 3.19.0"
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.18.0-0.2.pre2 of Flutter
git checkout 3.18.0-0.2.pre2
# Use git to checkout version 3.19.0 of Flutter
git checkout 3.19.0
# Get back to current working directory
cd "$current_dir"
echo "Switched to Flutter version 3.18.0-0.2.pre2"
echo "Switched to Flutter version 3.19.0"
fi
# Add pub cache and cargo to PATH