mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: upgrade flutter to 3.10.1 (#2619)
* chore: upgrade flutter and dart * ci: upgrade flutter in cicd * fix: remove textstyle_extensions from flowy_infra * ci: upgrade flutter in cicd * fix: update flutter.toml * fix: deprecations and ffi * fix: move json_annotation to dependencies Must have accidentally moved it to dev_dependencies when upgrading dependencies * fix: update editor ref and use fold * chore: try with generate true
This commit is contained in:
@ -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.7.5
|
||||
if [ "$FLUTTER_VERSION" = "3.7.5" ]; then
|
||||
echo "Flutter version is already 3.7.5"
|
||||
# Check if the current version is 3.10.1
|
||||
if [ "$FLUTTER_VERSION" = "3.10.1" ]; then
|
||||
echo "Flutter version is already 3.10.1"
|
||||
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.7.5 of Flutter
|
||||
git checkout 3.7.5
|
||||
# Use git to checkout version 3.10.1 of Flutter
|
||||
git checkout 3.10.1
|
||||
# Get back to current working directory
|
||||
cd "$current_dir"
|
||||
|
||||
echo "Switched to Flutter version 3.7.5"
|
||||
echo "Switched to Flutter version 3.10.1"
|
||||
fi
|
||||
|
||||
# Enable linux desktop
|
||||
|
@ -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.7.5
|
||||
if [ "$FLUTTER_VERSION" = "3.7.5" ]; then
|
||||
echo "Flutter version is already 3.7.5"
|
||||
# Check if the current version is 3.10.1
|
||||
if [ "$FLUTTER_VERSION" = "3.10.1" ]; then
|
||||
echo "Flutter version is already 3.10.1"
|
||||
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.7.5 of Flutter
|
||||
git checkout 3.7.5
|
||||
# Use git to checkout version 3.10.1 of Flutter
|
||||
git checkout 3.10.1
|
||||
# Get back to current working directory
|
||||
cd "$current_dir"
|
||||
|
||||
echo "Switched to Flutter version 3.7.5"
|
||||
echo "Switched to Flutter version 3.10.1"
|
||||
fi
|
||||
|
||||
# Enable linux desktop
|
||||
|
@ -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.7.5
|
||||
if [ "$FLUTTER_VERSION" = "3.7.5" ]; then
|
||||
echo "Flutter version is already 3.7.5"
|
||||
# Check if the current version is 3.10.1
|
||||
if [ "$FLUTTER_VERSION" = "3.10.1" ]; then
|
||||
echo "Flutter version is already 3.10.1"
|
||||
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.7.5 of Flutter
|
||||
git checkout 3.7.5
|
||||
# Use git to checkout version 3.10.1 of Flutter
|
||||
git checkout 3.10.1
|
||||
# Get back to current working directory
|
||||
cd "$current_dir"
|
||||
|
||||
echo "Switched to Flutter version 3.7.5"
|
||||
echo "Switched to Flutter version 3.10.1"
|
||||
fi
|
||||
|
||||
# Add pub cache and cargo to PATH
|
||||
|
Reference in New Issue
Block a user