From 9d81117d34acbb37e19efb0753f25f45d4c62889 Mon Sep 17 00:00:00 2001 From: Littlegnal <8847263+littleGnAl@users.noreply.github.com> Date: Thu, 5 Sep 2024 14:19:14 +0800 Subject: [PATCH] feat: Bump minimum supported Flutter SDK >= 3.0.0 (#1996) Bump minimum supported Flutter SDK >= 3.0.0 to allow us to reduce the maintenance cost. --- .github/workflows/build.yml | 16 ++++++++-------- example/pubspec.yaml | 2 +- pubspec.yaml | 4 ++-- 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 ++-- 7 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8de323b80..cd0a064f7 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.0.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.0.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.0.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.0.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.0.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.0.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.0.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.0.0", "3.x"] runs-on: ubuntu-latest timeout-minutes: 120 steps: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 3fe5ef665..77a0b34dc 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.17.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/pubspec.yaml b/pubspec.yaml index 4b576372e..80a558c86 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,8 +6,8 @@ version: 6.3.2 homepage: https://www.agora.io repository: https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/tree/main environment: - sdk: '>=2.14.0 <3.0.0' - flutter: '>=2.5.0' + sdk: '>=2.17.0 <4.0.0' + flutter: '>=3.0.0' dependencies: flutter: sdk: flutter diff --git a/test_shard/fake_test_app/pubspec.yaml b/test_shard/fake_test_app/pubspec.yaml index f44187520..bb3e78be9 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.17.0 <4.0.0' + flutter: '>=3.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/integration_test_app/pubspec.yaml b/test_shard/integration_test_app/pubspec.yaml index 109ed9176..ccd002b7f 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.17.0 <4.0.0' + flutter: '>=3.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/iris_tester/pubspec.yaml b/test_shard/iris_tester/pubspec.yaml index 44bb58856..20cfce5a4 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.17.0 <4.0.0' + flutter: '>=3.0.0' dependencies: flutter: diff --git a/test_shard/rendering_test/pubspec.yaml b/test_shard/rendering_test/pubspec.yaml index 8999fcb3a..f078aae48 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.17.0 <4.0.0' + flutter: '>=3.0.0' # Dependencies specify other packages that your package needs in order to work. # To automatically upgrade your package dependencies to the latest versions