Skip to content

ci: Pin Java 17 for Android updater - #4113

Merged
buenaflor merged 2 commits into
mainfrom
ci/pin-android-updater-java
Oct 22, 2026
Merged

buenaflor merged 2 commits into
mainfrom
ci/pin-android-updater-java

Conversation

@buenaflor

Copy link
Copy Markdown
Contributor

📜 Description

Set up Temurin Java 17 before running the Android dependency updater so the example's Gradle 8.14.3 build can regenerate JNI bindings.

💡 Motivation and Context

ubuntu-latest now resolves to Ubuntu 26.04 with Java 25 as its default. This breaks the build required by Android SDK updates with Unsupported class file major version 69. Pinning Java 17 matches the other Android CI jobs.

Observed in the failed Android update job.

💚 How did you test it?

Parsed the workflow YAML, verified Java 17 setup precedes the updater, and confirmed the remaining configuration is unchanged. The diff passes whitespace checks. The full dependency updater runs on main after merge.

📝 Checklist

  • I reviewed submitted code
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • No breaking changes

Ubuntu 26.04 defaults to Java 25, which cannot run the example's
Gradle 8.14.3 wrapper during JNI binding regeneration.

Select Temurin 17 before running the Android dependency updater.

Co-Authored-By: Codex <noreply@openai.com>
@github-actions

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

⚪ None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Features

Flutter

  • Report the generation of the cellular network technology in device.connection_effective_type on Android and iOS, for example 4g or 5g. On Android 11 and earlier, the app must have the READ_PHONE_STATE permission. by alwx in #4066
  • 🤖 Generated with Claude Code by alwx in #4066

Fixes

Flutter

  • Support JNI 1.1 by Carapacik in #4099
  • Allow empty associatedEventId in SentryFeedbackForm by lucas-zimerman in #4108

Other

  • (ios) Avoid deprecated windows in refresh rate by ananyateklu in #4111

Dependencies

Deps

  • chore(deps): update Cocoa SDK to v9.31.0 by github-actions in #4112
  • chore(deps): update Native SDK to v0.17.4 by github-actions in #4093

Internal Changes

  • Pin Java 17 for Android updater by buenaflor in #4113

🤖 This preview updates automatically when you update the PR.

@buenaflor
buenaflor marked this pull request as ready for review October 22, 2026 11:21
@buenaflor
buenaflor requested a review from denrase as a code owner October 22, 2026 11:21
Copilot AI balanced review requested due to automatic review settings October 22, 2026 11:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is narrowly scoped, correctly ordered, and has no identified blocking issues.

No open issues 🎉

What changed in this PR

Pins Temurin Java 17 for the Android dependency updater so the example’s Gradle build can regenerate JNI bindings without relying on the runner’s default Java version.

Changes:

  • Adds a commit-pinned actions/setup-java step before the Android updater.
  • Leaves the remaining updater configuration unchanged.
File Description
.github/​workflows/​update-deps.yml Configures Temurin Java 17 before running the Android dependency updater.

Review effort: Balanced

@buenaflor
buenaflor merged commit bb0e6e1 into main Oct 22, 2026
32 checks passed
@buenaflor
buenaflor deleted the ci/pin-android-updater-java branch October 22, 2026 11:38
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.

3 participants