Skip to content

Upgrading org.jetbrains.kotlinx:kotlinx-coroutines-android 0.30 to 1

Breaking0.30.2-eap13 → 1.11.0Breaking5New6Changed3Fixed11Other2

Fetching 82 releases from GitHub…4 / 82
BreakingUpgrade verdict

5 breaking changes.

  • Moved Promise-related functions from JS and Wasm/JS to the new web target.
  • Changed handling of coroutine exceptions that can't be propagated on JS and Wasm/JS.
  • Deprecated using CoroutineDispatcher as the coroutine context key; now, ContinuationInterceptor has to be used instead.
  • Added lint functions that mark passing a Job to coroutine builders as deprecated.
Top 3 of 5 that need code or config changes

Adds org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm 1.11.0.

Drops org.jetbrains.kotlinx:kotlinx-coroutines-core.

Installs 3 packages in all (was 5).

Breaking5
Moved Promise-related functions from JS and Wasm/JS to the new web target.
PromisewebJsAny
Changed handling of coroutine exceptions that can't be propagated on JS and Wasm/JS.
Deprecated using CoroutineDispatcher as the coroutine context key; now, ContinuationInterceptor has to be used instead.
CoroutineDispatcherContinuationInterceptor
Added lint functions that mark passing a Job to coroutine builders as deprecated.
Job
Advanced the deprecation levels on kotlinx-coroutines-test APIs.
kotlinx-coroutines-test

Generated by DepDelta from published JVM bytecode. Not mixed with prose notes.

  • removed: final class AndroidExceptionPreHandlerKt
  • removed: final class HandlerContextKt
  • removed: method HandlerContext.awaitFrame(Continuation): Object
  • removed: method HandlerDispatcher.delay(long, Continuation): Object
  • removed: method HandlerDispatcher.invokeOnTimeout(long, Runnable): DisposableHandle
  • removed: static method HandlerContextKt.getUI(): HandlerContext
  • removed: static method HandlerDispatcherKt.getMainHandler(): Handler
  • changed: method AndroidDispatcherFactory.createDispatcher(): MainCoroutineDispatcher → method AndroidDispatcherFactory.createDispatcher(List): MainCoroutineDispatcher
  • changed: method HandlerContext.invokeOnTimeout(long, Runnable): DisposableHandle → method HandlerContext.invokeOnTimeout(long, Runnable, CoroutineContext): DisposableHandle
  • added: method AndroidDispatcherFactory.hintOnError(): String