Skip to content

Conversation

@fzhinkin
Copy link
Contributor

KT-82467 will be enabled by default w/ language version 2.4, and the ABI dump for the library will change. Since there's no way to ignore a part of an ABI dump, or to use multiple dumps depending on a version (well, it's possible, but I would prefer to abstain from introducing such logic in our build scripts for now), I'm postposing to disable JvmEnhancedBridges until the library will enable it (one way, or another) in the main branch.

The ABI diff that would otherwise cause an ABI check check failure w/ LV 2.4:

--- /mnt/agent/work/ff8885566b60a51d/user-project/ui/kotlinx-coroutines-android/api/kotlinx-coroutines-android.api
+++ /mnt/agent/work/ff8885566b60a51d/user-project/ui/kotlinx-coroutines-android/build/kotlin/abi-legacy/kotlinx-coroutines-android.api
@@ -1,5 +1,6 @@
 public abstract class kotlinx/coroutines/android/HandlerDispatcher : kotlinx/coroutines/MainCoroutineDispatcher, kotlinx/coroutines/Delay {
   public fun delay (JLkotlin/coroutines/Continuation;)Ljava/lang/Object;
+  public synthetic fun getImmediate ()Lkotlinx/coroutines/MainCoroutineDispatcher;
   public abstract fun getImmediate ()Lkotlinx/coroutines/android/HandlerDispatcher;
   public fun invokeOnTimeout (JLjava/lang/Runnable;Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/DisposableHandle;
 }

@fzhinkin
Copy link
Contributor Author

FYI @udalov @dumanskaia

Copy link
Collaborator

@dkhalanskyjb dkhalanskyjb left a comment

Choose a reason for hiding this comment

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

I'd prefer to just enable the flag in develop now, but it doesn't look like there's an incantation for that in the Kotlin version the library is currently using.

@fzhinkin fzhinkin merged commit a0eb5f4 into kotlin-community/dev Dec 17, 2025
1 check failed
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