Skip to content

feat: Android - downgrade Kotlin to 2.0.21, upgrade JVM to 11#508

Merged
abelonogov-ld merged 7 commits intomainfrom
andrey/kotlin2.021
Apr 29, 2026
Merged

feat: Android - downgrade Kotlin to 2.0.21, upgrade JVM to 11#508
abelonogov-ld merged 7 commits intomainfrom
andrey/kotlin2.021

Conversation

@abelonogov-ld
Copy link
Copy Markdown
Contributor

@abelonogov-ld abelonogov-ld commented Apr 28, 2026

Summary

  • Increase compatibility and gives more Java features

Note

Medium Risk
Build-toolchain and dependency version shifts (Kotlin/JVM targets plus coroutines/serialization downgrades) can cause compilation or runtime compatibility issues across consumers despite minimal code changes.

Overview
Shifts the Android toolchain to Kotlin 2.0.21 (plugin versions updated) while moving the observability-android library and the MAUI LDObserve native Android module to Java/JVM 11 (sourceCompatibility/jvmTarget).

To keep Kotlin 2.0.21 compatible with transitive dependencies, the library build now pins Kotlin runtime artifacts (kotlin-stdlib/reflect/test) to 2.0.21 and downgrades coroutines/serialization versions accordingly; it also bumps launchdarkly-android-client-sdk to 5.12.0.

Fixes a Kotlinx serialization call-site by switching GraphQLClient request encoding to the explicit encodeToString(serializer, value) form, and updates the e2e app’s noCompose flavor to include androidx.activity:activity-ktx:1.7.0 for by viewModels() support.

Reviewed by Cursor Bugbot for commit 730b3b8. Bugbot is set up for automated code reviews on this repo. Configure here.

@abelonogov-ld abelonogov-ld requested a review from a team as a code owner April 28, 2026 22:38
Comment thread sdk/@launchdarkly/mobile-dotnet/android/native/build.gradle.kts Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f8b1a88. Configure here.

Comment thread sdk/@launchdarkly/observability-android/lib/build.gradle.kts
@abelonogov-ld abelonogov-ld enabled auto-merge (squash) April 29, 2026 19:59
@abelonogov-ld abelonogov-ld merged commit cc0fe6b into main Apr 29, 2026
24 checks passed
@abelonogov-ld abelonogov-ld deleted the andrey/kotlin2.021 branch April 29, 2026 20:06
abelonogov-ld pushed a commit that referenced this pull request Apr 29, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>launchdarkly-observability-android: 0.42.0</summary>

##
[0.42.0](launchdarkly-observability-android-0.41.0...launchdarkly-observability-android-0.42.0)
(2026-04-29)


### Features

* Android - downgrade Kotlin to 2.0.21, upgrade JVM to 11
([#508](#508))
([cc0fe6b](cc0fe6b))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Release metadata/changelog and version bumps only; no functional code
changes are included in this diff.
> 
> **Overview**
> Updates `sdk/@launchdarkly/observability-android` to **v0.42.0** by
bumping the version in `.release-please-manifest.json` and
`gradle.properties`.
> 
> Adds the `0.42.0` entry to `CHANGELOG.md`, noting the release feature
(Kotlin version downgrade to `2.0.21` and JVM upgrade to `11`).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
72a38b7. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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.

2 participants