Skip to content

build: Migrate to the new AGP DSL - #6641

Draft
runningcode wants to merge 1 commit into
mainfrom
no/agp-new-dsl
Draft

runningcode wants to merge 1 commit into
mainfrom
no/agp-new-dsl

Conversation

@runningcode

@runningcode runningcode commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Stack (AGP New DSL)


📜 Description

Collection branch for moving the build off the AGP 9 opt-outs android.builtInKotlin=false and android.newDsl=false. AGP 10 removes both.

This stack has one step:

  1. Move sentry-compose to com.android.kotlin.multiplatform.library. AGP rejects org.jetbrains.kotlin.multiplatform + com.android.library once built-in Kotlin is on.

The next two steps, switching to built-in Kotlin and dropping android.newDsl=false, land on 9.x.x in #6653. Built-in Kotlin compiles unit tests for the main code's JVM target, and main still publishes Java 8 while test dependencies such as mockito-kotlin 6 are Java 11.

💡 Motivation and Context

The android.newDsl=false and android.builtInKotlin=false opt-outs go away in AGP 10.

💚 How did you test it?

See the individual stack PRs.

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.

🔮 Next steps

Squash-merge this into main once every stack PR has been merged into it.

🤖 Generated with Claude Code

#skip-changelog

@sentry

sentry Bot commented Nov 17, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.64.0 (1) release

⚙️ sentry-android Build Distribution Settings

This branch has not been deployed

No deployments
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