kotlinx.rpc 0.3.0 Help

Migration to 0.2.4

Version 0.2.4 does not introduce any breaking changes. However, it includes some updates that may require additional modifications in user projects.

Removal of KSP plugin for Kotlin 2.0

If your project uses Kotlin 2.0, you are no longer required to add KSP Gradle plugin to your build files:

plugins { kotlin("jvm") version "2.0.10" kotlin("plugin.serialization") version "2.0.10" id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4" // KSP can be removed // id("com.google.devtools.ksp") version "2.0.10-1.0.24" }

This change brings one more benefit: without KSP, projects that use kotlinx.rpc can now use Gradle configuration caches.

Moving of client APIs

Some client APIs were moved from kotlinx-rpc-krpc-client artifact (and package) into kotlinx-rpc-core module (and package). These APIs are not kRPC specific hence the move.

List of API changes:

0.2.2

0.2.4

kotlinx.rpc.client.withService

kotlinx.rpc.withService

kotlinx.rpc.client.awaitFieldInitialization

kotlinx.rpc.awaitFieldInitialization

kotlinx.rpc.client.UninitializedRPCFieldException

kotlinx.rpc.UninitializedRPCFieldException

Old declarations are marked with @Deprecated(WARNING) and will be removed during the next two minor releases.

Last modified: 01 October 2024