Skip to content

fix broken agp9 compat#485

Merged
DennisAlund merged 2 commits intooddbit:mainfrom
qeepcologne:main
Apr 28, 2026
Merged

fix broken agp9 compat#485
DennisAlund merged 2 commits intooddbit:mainfrom
qeepcologne:main

Conversation

@qeepcologne
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@qeepcologne
Copy link
Copy Markdown
Contributor Author

#485

Per AGP 9's migrate-to-built-in-kotlin guide, `kotlin.compilerOptions.jvmTarget`
defaults to `android.compileOptions.targetCompatibility`, which is already set
to JVM_17 above. Setting it explicitly is redundant. The official DSL is also
top-level, not nested inside `android { }` — sidestep the placement question by
removing the block entirely.

This also drops the `org.jetbrains.kotlin.gradle.dsl.JvmTarget` reference, so
the legacy `kotlinOptions { jvmTarget = "17" }` is the only Kotlin compile
configuration left, gated to the `!useBuiltInKotlin` branch where it's valid.

Refs: https://developer.android.com/build/migrate-to-built-in-kotlin

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@DennisAlund
Copy link
Copy Markdown
Member

@claude review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the Android Gradle configuration to restore compatibility with AGP 9’s built-in Kotlin support, while still supporting the opt-out path (android.builtInKotlin=false) where the Kotlin Android plugin must be applied explicitly.

Changes:

  • Detects AGP 9 + android.builtInKotlin to decide whether to apply kotlin-android.
  • Skips the kotlinOptions DSL when built-in Kotlin is enabled (since it’s not available without kotlin-android).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DennisAlund DennisAlund merged commit 9be943b into oddbit:main Apr 28, 2026
5 checks passed
@DennisAlund
Copy link
Copy Markdown
Member

Thank you for the contributions. Merged and released: https://pub.dev/packages/facebook_app_events/versions/0.27.2

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