Skip to content

Commit

Permalink
feat(*): set minimum Dart SDK from 2.18 to 3.10 (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt authored Dec 20, 2024
1 parent 7888df9 commit 776eed5
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"flutterSdkVersion": "3.3.0"
"flutterSdkVersion": "3.10.6"
}
2 changes: 1 addition & 1 deletion .fvmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutter": "3.3.0",
"flutter": "3.10.6",
"flavors": {}
}
12 changes: 5 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ concurrency:
env:
# The minimum Flutter version that is supported by the packages.
#
# Uses Dart SDK v2.18.0 because it is the minimum version that supports
MIN_FLUTTER_VERSION: 3.3.0
# Uses Dart SDK v3.0.6 because it is the minimum version that supports
MIN_FLUTTER_VERSION: 3.10.6
# The minimum Dart version that is supported by the packages.
#
# Is also used in the Dart SDK matrix (needs to be updated there too, can't
# use env var - see: https://stackoverflow.com/a/74073435/8358501)
MIN_DART_VERSION: 2.18.0
MIN_DART_VERSION: 3.0.6

jobs:
test:
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [stable, beta, 2.18.0]
sdk: [stable, beta, 3.0.6]
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -136,9 +136,7 @@ jobs:
- uses: actions/checkout@v3
- uses: dart-lang/[email protected]
with:
# We need to use Dart SDK 2.18 to be able to get Melos v3 which is
# need to run "melos run analyze:dart --no-select".
sdk: 2.18.0
sdk: ${{ env.MIN_DART_VERSION }}

- name: Install Melos
run: dart pub global activate melos
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dart.flutterSdkPath": ".fvm/versions/3.3.0",
"dart.flutterSdkPath": ".fvm/versions/3.10.6",
"search.exclude": {
"**/.fvm": true
},
Expand Down
2 changes: 1 addition & 1 deletion packages/app_preview_example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ publish_to: "none"
version: 1.0.0+1

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ">=3.0.6 <4.0.0"

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion packages/app_preview_lints/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: app_preview_lints
description: Set of lint rules for for the app preview CLI.

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ">=3.0.6 <4.0.0"

dependencies:
lints: ^1.0.1
2 changes: 1 addition & 1 deletion packages/codemagic_app_preview/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ issue_tracker: https://github.com/nilsreichardt/codemagic-app-preview/issues
version: 0.2.2

environment:
sdk: ">=2.18.0 <4.0.0"
sdk: ">=3.0.6 <4.0.0"

dependencies:
args: ^2.3.1
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: codemagic_app_preview_workspace

environment:
sdk: ">=2.18.0 <4.0.0"
sdk: ">=3.0.6 <4.0.0"

dev_dependencies:
melos: ^3.1.1

0 comments on commit 776eed5

Please sign in to comment.