Skip to content

Commit 96e4fca

Browse files
committed
Update samples and change the version to 0.2.4
1 parent fd09868 commit 96e4fca

File tree

29 files changed

+45
-47
lines changed

29 files changed

+45
-47
lines changed

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
ALGOLIA_INDEX_NAME: 'prod_kotlin_rpc'
2121
ALGOLIA_KEY: '${{ secrets.ALGOLIA_KEY }}'
2222
CONFIG_JSON_PRODUCT: 'kotlinx-rpc'
23-
CONFIG_JSON_VERSION: '0.2.3'
23+
CONFIG_JSON_VERSION: '0.2.4'
2424

2525
jobs:
2626
build:

CHANGELOG.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# 0.2.3
2-
> Published 19 August 2024
1+
# 0.2.4
2+
> Published 20 August 2024
33
44
### Features
55
* KRPC-18 Add K2 and IR code generation plugins, preserve KSP for K1 by @Mr3zee in https://github.com/Kotlin/kotlinx-rpc/pull/105
@@ -8,14 +8,15 @@
88
### Bug fixes
99
* KRPC-101 Check if the entire stream is not already closed. by @pikinier20 in https://github.com/Kotlin/kotlinx-rpc/pull/158
1010
* KRPC-119 Exception Deserialization by @Mr3zee in https://github.com/Kotlin/kotlinx-rpc/pull/170
11+
* Fix compilation on Kotlin/Native by @Mr3zee in https://github.com/Kotlin/kotlinx-rpc/pull/172
1112

1213
### Infra
1314
* Add issue templates by @Mr3zee in https://github.com/Kotlin/kotlinx-rpc/pull/167
1415

1516
## New Contributors
1617
* @pikinier20 made their first contribution in https://github.com/Kotlin/kotlinx-rpc/pull/158
1718

18-
**Full Changelog**: https://github.com/Kotlin/kotlinx-rpc/compare/0.2.2...0.2.3
19+
**Full Changelog**: https://github.com/Kotlin/kotlinx-rpc/compare/0.2.2...0.2.4
1920

2021
# 0.2.2
2122
> Published 5 August 2024

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Example of plugins setup in a project's `build.gradle.kts`:
9292
plugins {
9393
kotlin("jvm") version "2.0.10"
9494
kotlin("plugin.serialization") version "2.0.10"
95-
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.3"
95+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4"
9696
}
9797
```
9898

@@ -106,7 +106,7 @@ plugins {
106106
kotlin("jvm") version "1.9.25"
107107
kotlin("plugin.serialization") version "1.9.25"
108108
id("com.google.devtools.ksp") version "1.9.25-1.0.20"
109-
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.3"
109+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4"
110110
}
111111
```
112112
### Runtime dependencies
@@ -166,11 +166,11 @@ based on the project's Kotlin version:
166166
```kotlin
167167
plugins {
168168
kotlin("jvm") version "2.0.10"
169-
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.3"
169+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4"
170170
}
171171

172172
dependencies {
173-
// version 0.2.3 is set by the Gradle plugin
173+
// version 0.2.4 is set by the Gradle plugin
174174
implementation("org.jetbrains.kotlinx:kotlinx-rpc-core")
175175
}
176176
```
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[
2-
{"version":"0.2.3","url":"/kotlinx-rpc/0.2.3/","isCurrent":true}
2+
{"version":"0.2.4","url":"/kotlinx-rpc/0.2.4/","isCurrent":true}
33
]

docs/pages/kotlinx-rpc/rpc.tree

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</toc-element>
2727
<toc-element topic="versions.topic"/>
2828
<toc-element toc-title="Migration guides">
29-
<toc-element topic="0-2-3.topic"/>
29+
<toc-element topic="0-2-4.topic"/>
3030
<toc-element topic="0-2-1.topic"/>
3131
</toc-element>
3232
</instance-profile>

docs/pages/kotlinx-rpc/topics/0-2-3.topic renamed to docs/pages/kotlinx-rpc/topics/0-2-4.topic

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
- Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
4+
-->
5+
26
<!DOCTYPE topic
37
SYSTEM "https://resources.jetbrains.com/writerside/1.0/xhtml-entities.dtd">
48
<topic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
59
xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/topic.v2.xsd"
6-
title="Migration to 0.2.3" id="0-2-3">
10+
title="Migration to 0.2.4" id="0-2-4">
711

812
<p>
9-
Version <code>0.2.3</code> does introduce any breaking changes.
13+
Version <code>0.2.4</code> does introduce any breaking changes.
1014
However, it includes some updates that may require additional modifications in user projects.
1115
</p>
1216
<chapter title="Removal of KSP plugin for Kotlin 2.0" id="removal-of-ksp-plugin-for-kotlin-2-0">
@@ -16,7 +20,7 @@
1620
plugins {
1721
kotlin("jvm") version "2.0.10"
1822
kotlin("plugin.serialization") version "2.0.10"
19-
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.3"
23+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4"
2024

2125
// KSP can be removed
2226
// id("com.google.devtools.ksp") version "2.0.10-1.0.24"
@@ -34,7 +38,7 @@
3438
<table>
3539
<tr>
3640
<td><code>0.2.2</code></td>
37-
<td><code>0.2.3</code></td>
41+
<td><code>0.2.4</code></td>
3842
</tr>
3943
<tr>
4044
<td><code>kotlinx.rpc.client.withService</code></td>

docs/pages/kotlinx-rpc/v.list

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<var name="host" value="https://kotlin.github.io"/>
1515

1616
<!-- Library versions -->
17-
<var name="kotlinx-rpc-version" value="0.2.3"/>
17+
<var name="kotlinx-rpc-version" value="0.2.4"/>
1818
<var name="kotlin-version" value="2.0.10"/>
1919
<var name="ksp-version" value="1.9.25-1.0.20"/>
2020
</vars>

docs/pages/kotlinx-rpc/writerside.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
<images dir="images" web-path="images/"/>
1313
<categories src="c.list"/>
1414
<vars src="v.list"/>
15-
<instance src="rpc.tree" version="0.2.3" web-path="/kotlinx-rpc/"/>
15+
<instance src="rpc.tree" version="0.2.4" web-path="/kotlinx-rpc/"/>
1616
</ihp>

samples/ktor-all-platforms-app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ plugins {
1313
alias(libs.plugins.kotlinPluginSerialization) apply false
1414
alias(libs.plugins.kotlinx.rpc) apply false
1515
alias(libs.plugins.kotlinx.rpc.platform) apply false
16-
alias(libs.plugins.ksp) apply false
16+
alias(libs.plugins.compose.compiler) apply false
1717
}

samples/ktor-all-platforms-app/composeApp/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
alias(libs.plugins.kotlinMultiplatform)
99
alias(libs.plugins.androidApplication)
1010
alias(libs.plugins.jetbrainsCompose)
11+
alias(libs.plugins.compose.compiler)
1112
alias(libs.plugins.kotlinx.rpc.platform)
1213
}
1314

samples/ktor-all-platforms-app/composeApp/src/commonMain/kotlin/App.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import androidx.compose.ui.Alignment
1414
import androidx.compose.ui.Modifier
1515
import io.ktor.client.*
1616
import io.ktor.http.*
17-
import kotlinx.rpc.client.withService
17+
import kotlinx.rpc.withService
1818
import kotlinx.rpc.serialization.json
1919
import kotlinx.rpc.streamScoped
2020
import kotlinx.rpc.transport.ktor.client.installRPC

samples/ktor-all-platforms-app/gradle/libs.versions.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[versions]
2-
kotlin = "1.9.24"
3-
ksp = "1.9.24-1.0.20"
2+
kotlin = "2.0.10"
43

54
agp = "8.2.0"
65
android-compileSdk = "34"
@@ -20,7 +19,7 @@ ktor = "2.3.11"
2019
logback = "1.5.6"
2120
kotlinx-serialization-json = "1.6.3"
2221
kotlinx-coroutines-core = "1.8.1"
23-
kotlinx-rpc = "0.2.2"
22+
kotlinx-rpc = "0.2.4"
2423

2524
[libraries]
2625
# kotlin
@@ -75,10 +74,10 @@ junit = { group = "junit", name = "junit", version.ref = "junit" }
7574
androidApplication = { id = "com.android.application", version.ref = "agp" }
7675
androidLibrary = { id = "com.android.library", version.ref = "agp" }
7776
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
77+
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
7878
kotlinPluginSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
7979
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
8080
ktor = { id = "io.ktor.plugin", version.ref = "ktor" }
8181
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
8282
kotlinx-rpc = { id = "org.jetbrains.kotlinx.rpc.plugin", version.ref = "kotlinx-rpc" }
8383
kotlinx-rpc-platform = { id = "org.jetbrains.kotlinx.rpc.platform", version.ref = "kotlinx-rpc" }
84-
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }

samples/ktor-all-platforms-app/server/src/test/kotlin/kotlinx/rpc/sample/ApplicationTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import UserData
88
import UserService
99
import io.ktor.server.testing.*
1010
import kotlinx.coroutines.flow.toList
11-
import kotlinx.rpc.client.withService
11+
import kotlinx.rpc.withService
1212
import kotlinx.rpc.serialization.json
1313
import kotlinx.rpc.streamScoped
1414
import kotlinx.rpc.transport.ktor.client.installRPC

samples/ktor-all-platforms-app/shared/build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
plugins {
66
alias(libs.plugins.kotlinMultiplatform)
77
alias(libs.plugins.androidLibrary)
8-
alias(libs.plugins.ksp)
98
alias(libs.plugins.kotlinx.rpc)
109
alias(libs.plugins.kotlinPluginSerialization)
1110
}

samples/ktor-android-app/app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ plugins {
66
alias(libs.plugins.androidApplication)
77
alias(libs.plugins.kotlinAndroid)
88
alias(libs.plugins.kotlinPluginSerialization)
9-
alias(libs.plugins.ksp)
109
alias(libs.plugins.kotlinx.rpc.platform)
10+
alias(libs.plugins.compose.compiler)
1111
}
1212

1313
android {

samples/ktor-android-app/app/src/main/kotlin/kotlinx/rpc/sample/ui/AppViewModel.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import kotlinx.coroutines.flow.StateFlow
1616
import kotlinx.coroutines.launch
1717
import kotlinx.rpc.RPCClient
1818
import kotlinx.rpc.streamScoped
19-
import kotlinx.rpc.client.withService
19+
import kotlinx.rpc.withService
2020
import kotlinx.rpc.sample.MyService
2121
import kotlinx.rpc.sample.UserData
2222

samples/ktor-android-app/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ plugins {
66
alias(libs.plugins.androidApplication) apply false
77
alias(libs.plugins.kotlinAndroid) apply false
88
alias(libs.plugins.kotlinJvm) apply false
9+
alias(libs.plugins.compose.compiler) apply false
910
}

samples/ktor-android-app/common/build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
plugins {
66
alias(libs.plugins.kotlinJvm)
77
alias(libs.plugins.kotlinPluginSerialization)
8-
alias(libs.plugins.ksp)
98
alias(libs.plugins.ktor)
109
alias(libs.plugins.kotlinx.rpc)
1110
}

samples/ktor-android-app/gradle/libs.versions.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
agp = "8.1.3"
3-
kotlin = "1.9.24"
3+
kotlin = "2.0.10"
44
androidx-activityCompose = "1.8.2"
55
androidx-appcompat = "1.6.1"
66
androidx-constraintlayout = "2.1.4"
@@ -14,8 +14,7 @@ ktor = "2.3.11"
1414
kotlinx-serialization-json = "1.6.1"
1515
kotlinx-coroutines-core = "1.8.1"
1616
logback = "1.5.6"
17-
kotlinx-rpc = "0.2.2"
18-
ksp = "1.9.24-1.0.20"
17+
kotlinx-rpc = "0.2.4"
1918

2019
[libraries]
2120
# kotlin
@@ -77,7 +76,7 @@ androidApplication = { id = "com.android.application", version.ref = "agp" }
7776
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
7877
kotlinJvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
7978
kotlinPluginSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
80-
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
79+
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
8180
kotlinx-rpc = { id = "org.jetbrains.kotlinx.rpc.plugin", version.ref = "kotlinx-rpc" }
8281
kotlinx-rpc-platform = { id = "org.jetbrains.kotlinx.rpc.platform", version.ref = "kotlinx-rpc" }
8382
ktor = { id = "io.ktor.plugin", version.ref = "ktor" }

samples/ktor-android-app/server/build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
plugins {
66
alias(libs.plugins.kotlinJvm)
77
alias(libs.plugins.kotlinPluginSerialization)
8-
alias(libs.plugins.ksp)
98
alias(libs.plugins.ktor)
109
alias(libs.plugins.kotlinx.rpc.platform)
1110

samples/ktor-android-app/server/src/test/kotlin/ApplicationTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import io.ktor.server.response.*
1010
import io.ktor.server.routing.*
1111
import io.ktor.server.testing.*
1212
import kotlinx.coroutines.flow.toList
13-
import kotlinx.rpc.client.withService
13+
import kotlinx.rpc.withService
1414
import kotlinx.rpc.sample.MyService
1515
import kotlinx.rpc.sample.UserData
1616
import kotlinx.rpc.serialization.json

samples/ktor-web-app/common/build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins {
66
alias(libs.plugins.kotlin.multiplatform)
77
alias(libs.plugins.kotlin.plugin.serialization)
88
alias(libs.plugins.kotlinx.rpc)
9-
alias(libs.plugins.ksp)
109
}
1110

1211
kotlin {

samples/ktor-web-app/frontend/src/jsMain/kotlin/App.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import kotlinx.coroutines.flow.flow
66
import kotlinx.rpc.RPCClient
7-
import kotlinx.rpc.client.withService
7+
import kotlinx.rpc.withService
88
import kotlinx.rpc.streamScoped
99
import react.FC
1010
import react.Props

samples/ktor-web-app/gradle/libs.versions.toml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
[versions]
2-
kotlin = "1.9.24"
2+
kotlin = "2.0.10"
33
kotlin-wrappers-bom = "1.0.0-pre.747"
44
ktor = "2.3.11"
55
kotlinx-serialization-json = "1.6.1"
66
kotlinx-coroutines-core = "1.8.1"
77
logback = "1.5.6"
8-
kotlinx-rpc = "0.2.2"
9-
ksp = "1.9.24-1.0.20"
8+
kotlinx-rpc = "0.2.4"
109

1110
[libraries]
1211
# kotlin
@@ -55,4 +54,3 @@ kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref
5554
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
5655
kotlinx-rpc = { id = "org.jetbrains.kotlinx.rpc.plugin", version.ref = "kotlinx-rpc" }
5756
kotlinx-rpc-platform = { id = "org.jetbrains.kotlinx.rpc.platform", version.ref = "kotlinx-rpc" }
58-
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }

samples/ktor-web-app/server/src/test/kotlin/ApplicationTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import io.ktor.server.testing.*
66
import kotlinx.coroutines.flow.toList
7-
import kotlinx.rpc.client.withService
7+
import kotlinx.rpc.withService
88
import kotlinx.rpc.serialization.json
99
import kotlinx.rpc.streamScoped
1010
import kotlinx.rpc.transport.ktor.client.installRPC

samples/simple-ktor-app/build.gradle.kts

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
*/
44

55
plugins {
6-
kotlin("jvm") version "1.9.24"
7-
kotlin("plugin.serialization") version "1.9.24"
6+
kotlin("jvm") version "2.0.10"
7+
kotlin("plugin.serialization") version "2.0.10"
88
id("io.ktor.plugin") version "2.3.11"
9-
id("com.google.devtools.ksp") version "1.9.24-1.0.20"
10-
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.2"
9+
id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.4"
1110
}
1211

1312
val kotlin_version: String by project

samples/simple-ktor-app/src/main/kotlin/Client.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import kotlinx.coroutines.cancel
99
import kotlinx.coroutines.flow.flow
1010
import kotlinx.coroutines.launch
1111
import kotlinx.coroutines.runBlocking
12-
import kotlinx.rpc.client.withService
12+
import kotlinx.rpc.withService
1313
import kotlinx.rpc.serialization.json
1414
import kotlinx.rpc.streamScoped
1515
import kotlinx.rpc.transport.ktor.client.rpc

samples/simple-ktor-app/src/test/kotlin/ApplicationTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import kotlinx.coroutines.Dispatchers
88
import kotlinx.coroutines.cancel
99
import kotlinx.coroutines.launch
1010
import kotlinx.rpc.client.awaitFieldInitialization
11-
import kotlinx.rpc.client.withService
11+
import kotlinx.rpc.withService
1212
import kotlinx.rpc.serialization.json
1313
import kotlinx.rpc.transport.ktor.client.installRPC
1414
import kotlinx.rpc.transport.ktor.client.rpc

versions-root/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
# core library version
3-
kotlinx-rpc = "0.2.3"
3+
kotlinx-rpc = "0.2.4"
44

55
# kotlin
66
kotlin-lang = "2.0.10"

0 commit comments

Comments
 (0)