From 3cc945b69197616deb6fc56fc2ab1ac8db0dd7d5 Mon Sep 17 00:00:00 2001 From: Littlegnal <8847263+littleGnAl@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:40:29 +0800 Subject: [PATCH] feat: Bump minimum supported Flutter SDK >= 3.7.0 (#2001) We need this change(https://github.com/flutter/engine/commit/90815e5f75dee1c20ce6d61d5161157513d90b84), which was released in Flutter SDK 3.7.0 to fix a crash on Windows(https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/pull/1999) This PR is preparing for the fix. --- .github/workflows/build.yml | 16 ++++++++-------- example/pubspec.yaml | 2 +- test_shard/fake_test_app/pubspec.yaml | 4 ++-- test_shard/integration_test_app/pubspec.yaml | 3 ++- test_shard/iris_tester/pubspec.yaml | 4 ++-- test_shard/rendering_test/pubspec.yaml | 4 ++-- 6 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8de323b80..dbecf4468 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -85,7 +85,7 @@ jobs: if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }} strategy: matrix: - version: ["2.10.5", "3.x"] + version: ["3.7.0", "3.x"] runs-on: ubuntu-latest timeout-minutes: 120 env: @@ -119,7 +119,7 @@ jobs: if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }} strategy: matrix: - version: ["2.10.5", "3.16"] + version: ["3.7.0", "3.16"] runs-on: macos-12 timeout-minutes: 120 env: @@ -140,7 +140,7 @@ jobs: if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }} strategy: matrix: - version: ["2.10.5", "3.x"] + version: ["3.7.0", "3.x"] runs-on: macos-12 timeout-minutes: 120 env: @@ -185,7 +185,7 @@ jobs: if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }} strategy: matrix: - version: ["2.10.5", "3.x"] + version: ["3.7.0", "3.x"] runs-on: windows-2019 timeout-minutes: 120 env: @@ -239,7 +239,7 @@ jobs: if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }} strategy: matrix: - version: ["2.10.5", "3.x"] + version: ["3.7.0", "3.x"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -259,7 +259,7 @@ jobs: if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }} strategy: matrix: - version: ["2.10.5", "3.x"] + version: ["3.7.0", "3.x"] runs-on: windows-2019 steps: - uses: actions/checkout@v3 @@ -280,7 +280,7 @@ jobs: if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }} strategy: matrix: - version: ["2.10.5", "3.x"] + version: ["3.7.0", "3.x"] runs-on: macos-12 timeout-minutes: 120 steps: @@ -325,7 +325,7 @@ jobs: if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci:skip') }} strategy: matrix: - version: ["2.10.5", "3.x"] + version: ["3.7.0", "3.x"] runs-on: ubuntu-latest timeout-minutes: 120 steps: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 3fe5ef665..26abab194 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -6,7 +6,7 @@ description: Demonstrates how to use the agora_rtc_engine plugin. publish_to: 'none' # Remove this line if you wish to publish to pub.dev environment: - sdk: ">=2.16.1 <3.0.0" + sdk: ">=2.19.0 <4.0.0" # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions diff --git a/test_shard/fake_test_app/pubspec.yaml b/test_shard/fake_test_app/pubspec.yaml index f44187520..b855a7ba8 100644 --- a/test_shard/fake_test_app/pubspec.yaml +++ b/test_shard/fake_test_app/pubspec.yaml @@ -18,8 +18,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=2.14.0 <3.0.0' - flutter: '>=2.0.0' + sdk: '>=2.19.0 <4.0.0' + flutter: '>=3.7.0' # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions diff --git a/test_shard/integration_test_app/pubspec.yaml b/test_shard/integration_test_app/pubspec.yaml index 109ed9176..7c825eb70 100644 --- a/test_shard/integration_test_app/pubspec.yaml +++ b/test_shard/integration_test_app/pubspec.yaml @@ -18,7 +18,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: ">=2.14.0 <3.0.0" + sdk: '>=2.19.0 <4.0.0' + flutter: '>=3.7.0' # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions diff --git a/test_shard/iris_tester/pubspec.yaml b/test_shard/iris_tester/pubspec.yaml index 44bb58856..8085703d5 100644 --- a/test_shard/iris_tester/pubspec.yaml +++ b/test_shard/iris_tester/pubspec.yaml @@ -4,8 +4,8 @@ version: 0.0.1 homepage: environment: - sdk: '>=2.14.0 <3.0.0' - flutter: '>=2.0.0' + sdk: '>=2.19.0 <4.0.0' + flutter: '>=3.7.0' dependencies: flutter: diff --git a/test_shard/rendering_test/pubspec.yaml b/test_shard/rendering_test/pubspec.yaml index 8999fcb3a..add0c743c 100644 --- a/test_shard/rendering_test/pubspec.yaml +++ b/test_shard/rendering_test/pubspec.yaml @@ -18,8 +18,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=2.14.0 <3.0.0' - flutter: '>=2.0.0' + sdk: '>=2.19.0 <4.0.0' + flutter: '>=3.7.0' # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions