From 743f04b5bec0df13d3e51d4f48feb259cb04dd8c Mon Sep 17 00:00:00 2001 From: August Date: Mon, 18 Nov 2024 21:44:56 +0100 Subject: [PATCH] ci: Upgrade to Flutter v3.24.x (#1858) --- .github/workflows/build-example.yml | 22 ++----------------- .github/workflows/pull-request.yml | 11 ++++++++++ .github/workflows/release-prepare.yml | 6 ----- .github/workflows/test.yml | 4 ++-- .../lib/generated_plugin_registrant.dart | 19 ---------------- 5 files changed, 15 insertions(+), 47 deletions(-) delete mode 100644 packages/audioplayers/example/lib/generated_plugin_registrant.dart diff --git a/.github/workflows/build-example.yml b/.github/workflows/build-example.yml index 37c9e435b..e9a283fd5 100644 --- a/.github/workflows/build-example.yml +++ b/.github/workflows/build-example.yml @@ -9,8 +9,8 @@ on: type: choice options: - 'any' + - '3.24.x' - '3.22.x' - - '3.19.x' flutter_channel: description: 'Flutter Channel' required: false @@ -60,7 +60,7 @@ on: inputs: flutter_version: required: false - default: '3.22.3' + default: '3.24.5' type: string flutter_channel: required: false @@ -111,24 +111,6 @@ jobs: - name: Example app - Build Web app working-directory: ./packages/audioplayers/example run: flutter build web - - name: Upload pages artifact - if: inputs.upload_pages_artifact - uses: actions/upload-pages-artifact@v2 - with: - path: ./packages/audioplayers/example/build/web - - # TODO(gustl22): Remove, when min supported flutter version is 3.22.x, so can integrate wasm test in the default 'web' build. - web-wasm: - runs-on: ubuntu-latest - timeout-minutes: 30 - if: inputs.enable_web - steps: - - uses: actions/checkout@v4 - - uses: subosito/flutter-action@v2 - with: - flutter-version: 3.22.3 - - uses: bluefireteam/melos-action@main - - name: Example app - Build Web app in WASM working-directory: ./packages/audioplayers/example run: flutter build web --wasm diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 4ba294d86..2d6439c57 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -8,6 +8,17 @@ on: - ready_for_review jobs: + call-min-flutter-test: + uses: ./.github/workflows/test.yml + with: + flutter_version: '3.22.0' + fatal_warnings: false + enable_android: ${{ github.event.pull_request.draft == false }} + enable_web: ${{ github.event.pull_request.draft == false }} + enable_ios: ${{ github.event.pull_request.draft == false }} + enable_windows: ${{ github.event.pull_request.draft == false }} + enable_linux: ${{ github.event.pull_request.draft == false }} + enable_macos: ${{ github.event.pull_request.draft == false }} call-test: uses: ./.github/workflows/test.yml with: diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml index aed8ccfd7..6cc8cdc74 100644 --- a/.github/workflows/release-prepare.yml +++ b/.github/workflows/release-prepare.yml @@ -9,14 +9,8 @@ on: type: boolean jobs: - call-min-flutter-test: - uses: ./.github/workflows/test.yml - with: - flutter_version: '3.22.0' - fatal_warnings: false prepare-release: name: Prepare release - needs: call-min-flutter-test permissions: contents: write pull-requests: write diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 54b150959..829860777 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,8 +9,8 @@ on: type: choice options: - 'any' + - '3.24.x' - '3.22.x' - - '3.19.x' flutter_channel: description: 'Flutter Channel' required: false @@ -60,7 +60,7 @@ on: inputs: flutter_version: required: false - default: '3.22.3' + default: '3.24.5' type: string flutter_channel: required: false diff --git a/packages/audioplayers/example/lib/generated_plugin_registrant.dart b/packages/audioplayers/example/lib/generated_plugin_registrant.dart deleted file mode 100644 index 49f7a1233..000000000 --- a/packages/audioplayers/example/lib/generated_plugin_registrant.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// Generated file. Do not edit. -// - -// ignore_for_file: directives_ordering -// ignore_for_file: lines_longer_than_80_chars -// ignore_for_file: depend_on_referenced_packages - -import 'package:audioplayers_web/audioplayers_web.dart'; -import 'package:file_picker/_internal/file_picker_web.dart'; - -import 'package:flutter_web_plugins/flutter_web_plugins.dart'; - -// ignore: public_member_api_docs -void registerPlugins(Registrar registrar) { - AudioplayersPlugin.registerWith(registrar); - FilePickerWeb.registerWith(registrar); - registrar.registerMessageHandler(); -}