From 8903912f33cbb2a18e389e33b326b2ebbe226660 Mon Sep 17 00:00:00 2001 From: Joonas Kerttula Date: Tue, 4 Jun 2024 18:06:02 +0300 Subject: [PATCH] chore: update patrol and minimum SDK version to Flutter 3.22.1/Dart 3.4 (#92) * upgrades the version to 0.2.3-beta * chore: updated minimum supported SDK version to Flutter 3.22.1/Dart 3.4 and Patrol --- .github/workflows/analyze.yaml | 4 ++-- .github/workflows/build.yaml | 10 +++++----- .github/workflows/integration_tests.yaml | 8 ++++---- .github/workflows/licence-check.yaml | 2 +- CHANGELOG.md | 7 +++++++ CONTRIBUTING.md | 2 +- .../android/app/src/main/AndroidManifest.xml | 14 +++++++------ example/integration_test/t06_map_test.dart | 8 ++++---- .../t07_event_listener_test.dart | 7 ------- example/lib/pages/camera.dart | 2 +- example/pubspec.yaml | 6 +++--- lib/src/google_maps_navigation.dart | 20 +++++++++---------- pubspec.yaml | 6 +++--- 13 files changed, 49 insertions(+), 47 deletions(-) diff --git a/.github/workflows/analyze.yaml b/.github/workflows/analyze.yaml index a5cfeef..d497552 100644 --- a/.github/workflows/analyze.yaml +++ b/.github/workflows/analyze.yaml @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 @@ -51,7 +51,7 @@ jobs: java-version: "17" - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 724e156..6ca117a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -37,7 +37,7 @@ jobs: cache: "gradle" - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 @@ -59,7 +59,7 @@ jobs: cache: "gradle" - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 @@ -85,7 +85,7 @@ jobs: ${{ runner.os }}-pods- - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 @@ -114,7 +114,7 @@ jobs: cache: "gradle" - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true - uses: bluefireteam/melos-action@6085791af7036f6366c9a4b9d55105c0ef9c6388 @@ -134,7 +134,7 @@ jobs: - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true architecture: x64 diff --git a/.github/workflows/integration_tests.yaml b/.github/workflows/integration_tests.yaml index 40b717a..a09ac2a 100644 --- a/.github/workflows/integration_tests.yaml +++ b/.github/workflows/integration_tests.yaml @@ -29,7 +29,7 @@ jobs: timeout-minutes: 45 strategy: matrix: - patrol_cli_version: [2.5.0] + patrol_cli_version: [2.7.0] working_directory: ["example"] runs-on: labels: ubuntu-latest-8core @@ -64,7 +64,7 @@ jobs: key: avd - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true - name: Install patrol_cli @@ -104,7 +104,7 @@ jobs: timeout-minutes: 90 strategy: matrix: - patrol_cli_version: [2.5.0] + patrol_cli_version: [2.7.0] working_directory: ["example"] runs-on: labels: macos-13-large @@ -119,7 +119,7 @@ jobs: - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true - uses: actions/cache@v4 diff --git a/.github/workflows/licence-check.yaml b/.github/workflows/licence-check.yaml index c29a8b9..c113559 100644 --- a/.github/workflows/licence-check.yaml +++ b/.github/workflows/licence-check.yaml @@ -38,7 +38,7 @@ jobs: - name: Install Flutter uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 with: - flutter-version: "3.19.x" + flutter-version: "3.22.x" channel: "stable" cache: true - name: Install Melos diff --git a/CHANGELOG.md b/CHANGELOG.md index 61b616a..1c7c226 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 0.2.3-beta + +This is the beta release of the Google Maps Navigation package for Flutter. It is an early look at the package and is intended for testing and feedback collection. The functionalities and APIs in this version are subject to change. + +- Updates minimum supported SDK version to Flutter 3.22.1/Dart 3.4. +- Update patrol version to 3.7.2 + ## 0.2.2-beta This is the beta release of the Google Maps Navigation package for Flutter. It is an early look at the package and is intended for testing and feedback collection. The functionalities and APIs in this version are subject to change. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 09feb0c..f34952f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -132,7 +132,7 @@ Specify the device you want to run the tests on with the DEVICE env variable. Integration tests are responsible for ensuring that the plugin works against the native Navigation SDK for both Android and iOS platforms. Patrol is used for the integration tests to simplify interactions with native elements. To use patrol, you first need to activate the patrol_cli. ```bash -flutter pub global activate patrol_cli 2.5.0 +flutter pub global activate patrol_cli 2.7.0 ``` To ensure that all necessary dependencies for patrol are properly set up, run the following command: diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index a43566e..de3068c 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -15,8 +15,10 @@ --> - + + + @@ -36,12 +38,12 @@ while the Flutter UI initializes. After that, this theme continues to determine the Window background behind the Flutter UI. --> + android:name="io.flutter.embedding.android.NormalTheme" + android:resource="@style/NormalTheme" + /> - - + +