Skip to content

fix(Android): handle Gradle 9 Kotlin modes safely - #401

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

fix(Android): handle Gradle 9 Kotlin modes safely#401
AlexV525 merged 1 commit into
mainfrom
codex/fix-gradle-9-kotlin-compat

Conversation

@AlexV525

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 the Android plugin, including the AGP 9 default when android.builtInKotlin is unset
  • test legacy, explicit built-in, and default built-in Kotlin modes with Gradle 9.5.1 / AGP 9.2.1

Verification

  • reproduced the resolved-classpath failure with the previous conditional buildscript layout
  • verified all three Kotlin configuration modes with JDK 17
  • built the legacy-mode debug APK successfully with 132 Gradle tasks
  • parsed the workflow YAML and ran git diff --check

Fixes #400

@AlexV525
AlexV525 requested a review from CaiJingLong as a code owner July 19, 2026 15:49
@AlexV525
AlexV525 force-pushed the codex/fix-gradle-9-kotlin-compat branch from 1485cfc to 2195525 Compare July 19, 2026 16:37
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.

Refs #400

Co-authored-by: OpenAI Codex <noreply@openai.com>
@AlexV525
AlexV525 force-pushed the codex/fix-gradle-9-kotlin-compat branch from 2195525 to fe23d3b Compare July 20, 2026 02:49
@AlexV525
AlexV525 merged commit e4bbcca into main Jul 20, 2026
9 checks passed
@AlexV525
AlexV525 deleted the codex/fix-gradle-9-kotlin-compat branch July 20, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant