Skip to content

ref(android): Remove kotlinStdLibVersionAndroid pin#5590

Draft
runningcode wants to merge 2 commits into
mainfrom
no/remove-kotlin-stdlib-version-android
Draft

ref(android): Remove kotlinStdLibVersionAndroid pin#5590
runningcode wants to merge 2 commits into
mainfrom
no/remove-kotlin-stdlib-version-android

Conversation

@runningcode

Copy link
Copy Markdown
Contributor

📜 Description

Removes the Config.kotlinStdLibVersionAndroid constant (1.9.24) and the explicit version argument from the kotlin(Config.kotlinStdLib, ...) dependency declarations in the Android modules. The stdlib version now aligns with the Kotlin Gradle plugin (2.2.0) automatically.

Affected modules: sentry-okhttp, sentry-ktor-client, sentry-android-sqlite, sentry-android-timber, sentry-android-distribution, sentry-android-replay, sentry-launchdarkly-android.

💡 Motivation and Context

The pin overrode the stdlib version managed by the Kotlin Gradle plugin, which is discouraged. Letting the plugin manage the stdlib version keeps it consistent with the compiler and removes a stale constant.

💚 How did you test it?

./gradlew spotlessApply apiDump builds successfully; no API changes.

📝 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.

🔮 Next steps

runningcode and others added 2 commits June 22, 2026 14:41
The Android modules pinned the Kotlin stdlib to 1.9.24 via
Config.kotlinStdLibVersionAndroid, overriding the version managed by the
Kotlin Gradle plugin (2.2.0). Drop the explicit version so the stdlib
aligns with the plugin automatically.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sentry

sentry Bot commented Jun 22, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

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

⚙️ sentry-android Build Distribution Settings

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