Skip to content

ci: build the example with current Flutter and Xcode - #419

Merged
wang-bin merged 1 commit into
wang-bin:masterfrom
abdelaziz-mahdy:ci/fix-latest-flutter-xcode
Nov 15, 2026
Merged

wang-bin merged 1 commit into
wang-bin:masterfrom
abdelaziz-mahdy:ci/fix-latest-flutter-xcode

Conversation

@abdelaziz-mahdy

Copy link
Copy Markdown
Contributor

Three Build jobs currently fail on every PR (#413, #417, #418), independent of their changes, because the stable channel is now Flutter 3.50 and macOS runners still default to Xcode 16.4.

Android (ubuntu, any)

Your project's Gradle version (8.14.0) is lower than Flutter's minimum supported version of 9.3.1.

Flutter 3.50 requires Gradle 9.3.1 and AGP 9.1.1, and its Gradle plugin calls AGP 9 APIs (ApplicationExtension.getDefaultConfig() returning ApplicationDefaultConfig), so --android-skip-build-dependency-validation does not help either.

  • example/android: Gradle 9.3.1, AGP 9.1.1, Kotlin Gradle plugin 2.3.20.
  • android.nonFinalResIds=true (AGP's default). AGP 9's R8 optimized resource shrinking fails with "Optimized resource shrinking requires non-final IDs" otherwise. Nothing in the example or the plugin switches on R ids.
  • The 3.22.x job restores AGP 8.11.1 / Kotlin 2.2.20 / Gradle 8.14 in one step, since Flutter 3.22's Gradle plugin predates AGP 9.

iOS and macOS

AVFactory.swift:120:56: error: extra argument 'isolation' in call

video_player_avfoundation 2.12.2+ (Swift rewrite) calls AVAsset.load(_:isolation:), which the default Xcode 16.4 on macos-15 does not have. Both jobs move to macos-26 (default Xcode 26.6).

Verified

The example builds a release APK locally on Flutter 3.50 with JDK 17. This PR's own Build run is the check for the iOS, macOS and Flutter 3.22 jobs.

Three jobs fail on every PR now that the stable channel is Flutter 3.50:

- Android (any): Flutter 3.50 requires Gradle 9.3.1 and AGP 9.1.1 (and
  its Gradle plugin calls AGP 9 APIs, so skipping the version check does
  not help). The example moves to Gradle 9.3.1, AGP 9.1.1 and Kotlin
  2.3.20. AGP 9's optimized resource shrinking needs non-final resource
  IDs, so android.nonFinalResIds goes back to its default (true); nothing
  in the example or plugin relies on final IDs. The Flutter 3.22 job
  restores the AGP 8 toolchain in a step, since 3.22 predates AGP 9.
- iOS / macOS: video_player_avfoundation 2.12.2+ calls
  AVAsset.load(_:isolation:), which the Xcode 16.4 on macos-15 lacks.
  Both jobs move to macos-26 (Xcode 26.6).

Verified locally: the example builds a release APK on Flutter 3.50 with
JDK 17.
@wang-bin
wang-bin merged commit 5e49748 into wang-bin:master Nov 15, 2026
15 checks passed
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.

2 participants