From 776eed568d87f40a7ae04595755a8d9c8cb6b4f9 Mon Sep 17 00:00:00 2001 From: Nils Reichardt Date: Fri, 20 Dec 2024 20:10:24 +0100 Subject: [PATCH] feat(*): set minimum Dart SDK from 2.18 to 3.10 (#115) --- .fvm/fvm_config.json | 2 +- .fvmrc | 2 +- .github/workflows/ci.yaml | 12 +++++------- .vscode/settings.json | 2 +- packages/app_preview_example/pubspec.yaml | 2 +- packages/app_preview_lints/pubspec.yaml | 2 +- packages/codemagic_app_preview/pubspec.yaml | 2 +- pubspec.yaml | 2 +- 8 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.fvm/fvm_config.json b/.fvm/fvm_config.json index 3618db9..6dc4251 100644 --- a/.fvm/fvm_config.json +++ b/.fvm/fvm_config.json @@ -1,3 +1,3 @@ { - "flutterSdkVersion": "3.3.0" + "flutterSdkVersion": "3.10.6" } \ No newline at end of file diff --git a/.fvmrc b/.fvmrc index b958ca5..7626778 100644 --- a/.fvmrc +++ b/.fvmrc @@ -1,4 +1,4 @@ { - "flutter": "3.3.0", + "flutter": "3.10.6", "flavors": {} } \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f27c573..ebed46d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: @@ -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 @@ -136,9 +136,7 @@ jobs: - uses: actions/checkout@v3 - uses: dart-lang/setup-dart@v1.5.1 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 diff --git a/.vscode/settings.json b/.vscode/settings.json index 1cd895a..7001c25 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - "dart.flutterSdkPath": ".fvm/versions/3.3.0", + "dart.flutterSdkPath": ".fvm/versions/3.10.6", "search.exclude": { "**/.fvm": true }, diff --git a/packages/app_preview_example/pubspec.yaml b/packages/app_preview_example/pubspec.yaml index eab66c9..33881d8 100644 --- a/packages/app_preview_example/pubspec.yaml +++ b/packages/app_preview_example/pubspec.yaml @@ -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: diff --git a/packages/app_preview_lints/pubspec.yaml b/packages/app_preview_lints/pubspec.yaml index b770c40..0cd7deb 100644 --- a/packages/app_preview_lints/pubspec.yaml +++ b/packages/app_preview_lints/pubspec.yaml @@ -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 diff --git a/packages/codemagic_app_preview/pubspec.yaml b/packages/codemagic_app_preview/pubspec.yaml index 395aa0f..718c5b3 100644 --- a/packages/codemagic_app_preview/pubspec.yaml +++ b/packages/codemagic_app_preview/pubspec.yaml @@ -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 diff --git a/pubspec.yaml b/pubspec.yaml index 30bfa76..aeca775 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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