Skip to content

🐛 Fix Gradle 9 Kotlin compatibility - #1427

Merged
AlexV525 merged 1 commit into
mainfrom
codex/fix-gradle-9-kotlin-compat
Jul 20, 2026
Merged

🐛 Fix Gradle 9 Kotlin compatibility#1427
AlexV525 merged 1 commit into
mainfrom
codex/fix-gradle-9-kotlin-compat

Conversation

@AlexV525

@AlexV525 AlexV525 commented Jul 19, 2026

Copy link
Copy Markdown
Member

Summary

  • keep the legacy KGP dependency in a top-level buildscript block so Gradle cannot observe the classpath before it is mutated
  • detect built-in Kotlin after applying AGP, including the AGP 9 default when android.builtInKotlin is unset
  • verify legacy, explicit built-in, and default built-in Kotlin projects in one Android job
  • reuse Flutter/pub and Gradle caches across the Android build and Kotlin mode checks

Verification

  • verified all three Kotlin modes with JDK 17, Gradle 9.5.1, and AGP 9.2.1
  • passed the AGP 8.9.3 Android unit tests
  • built the debug APK successfully
  • parsed the workflow YAML and ran git diff --check

Follow-up to #1403.
Related to fluttercandies/flutter_image_compress#400.

@AlexV525
AlexV525 requested a review from CaiJingLong as a code owner July 19, 2026 16:18
@github-actions

Copy link
Copy Markdown

Download apk from here for ac2539f

@AlexV525
AlexV525 force-pushed the codex/fix-gradle-9-kotlin-compat branch from 9678ef5 to 204832a Compare July 20, 2026 03:08
@github-actions

Copy link
Copy Markdown

Download apk from here for 1836a3b

Keep the legacy KGP dependency in the top-level buildscript phase, detect built-in Kotlin after applying AGP, and cover explicit and default AGP 9 modes in CI.

Follow-up to #1403.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@AlexV525
AlexV525 force-pushed the codex/fix-gradle-9-kotlin-compat branch from 204832a to bd2705b Compare July 20, 2026 03:22
@github-actions

Copy link
Copy Markdown

Download apk from here for c6811e6

@AlexV525
AlexV525 merged commit 3d03718 into main Jul 20, 2026
15 checks passed
@AlexV525
AlexV525 deleted the codex/fix-gradle-9-kotlin-compat branch July 20, 2026 03:57
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