Skip to content

Fix Navigator 2 example Android build on Flutter 3.50 - #3493

Open
mahanpyk wants to merge 1 commit into
jonataslaw:masterfrom
mahanpyk:fix/flutter-3.50-compat
Open

mahanpyk wants to merge 1 commit into
jonataslaw:masterfrom
mahanpyk:fix/flutter-3.50-compat

Conversation

@mahanpyk

Copy link
Copy Markdown

Problem

The Android host for the Navigator 2 example pins Gradle 8.10.2, Android Gradle Plugin 8.7.0, and Kotlin Gradle Plugin 1.8.22. All three are below the build-time minimums enforced by Flutter 3.50.0, so the example needs a toolchain update to produce an APK on that SDK.

Changes

  • Pin Gradle 9.3.1, AGP 9.1.1, and Kotlin Gradle Plugin 2.4.10.
  • Set the AGP 9 compatibility flags for the existing Kotlin plugin and Android DSL.
  • Use Kotlin's compilerOptions DSL and retain the Java and Kotlin JVM 11 output targets.

The four changes are confined to example_nav2/android. The related #3488 targets latest-getx5-RC. This PR brings the Android host update to master.

Validation

  • Flutter 3.50.0 stable, Dart 3.14.0, and JDK 17. The original versions fail a check against the three Flutter SDK minimums. The updated versions pass.
  • flutter build apk --debug --no-pub --target-platform android-arm64 completed with dependency validation enabled. The default Flutter artifact server returned HTTP 403 locally, so verification used the documented Flutter artifact mirror and a local Google Maven fallback.
  • The debug APK cold-launched to the Navigator 2 dashboard on an Android API 36 emulator.
  • All 222 root tests and all 34 tests in the focused Chrome Rx and dependency-injection run passed. Static analysis reported the existing unawaited_return_in_try_block warning. The two example counter fixtures also fail on the base commit because their expected counter text is absent from the current screens.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant