File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ compose-plugin = "1.5.14" # https://mvnrepository.com/artifact/androidx.compose.
1111compose-bom = " 2024.09.02"
1212material3 = " 1.3.0"
1313junit = " 4.13.2"
14- ktor = " 2.3.12 "
14+ ktor = " 3.0.0-rc-1 "
1515kotlinx-serialization-json = " 1.7.3"
1616kotlinx-coroutines-core = " 1.9.0"
1717logback = " 1.5.8"
Original file line number Diff line number Diff line change 11# Ktor Web App
22Sample application with Kotlin/Js on frontend and Kotlin/Jvm on backend,that uses kRPC with Ktor to communicate.
33
4+ > Warning: the code is broken due to https://youtrack.jetbrains.com/issue/KT-71757/
5+ > No workarounds for now
6+
47### Running frontend
58To run frontend in development mode, run this command:
69``` bash
Original file line number Diff line number Diff line change 11[versions ]
22kotlin = " 2.0.10"
33kotlin-wrappers-bom = " 1.0.0-pre.812"
4- ktor = " 2.3.12 "
4+ ktor = " 3.0.0-rc-1 "
55kotlinx-serialization-json = " 1.7.3"
66kotlinx-coroutines-core = " 1.9.0"
77logback = " 1.5.8"
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ import kotlin.test.assertEquals
1616class ApplicationTest {
1717 @Test
1818 fun testRoot () = testApplication {
19+ application {
20+ module()
21+ }
22+
1923 val service = createClient {
2024 installRPC()
2125 }.rpc(" /api" ) {
Original file line number Diff line number Diff line change 55plugins {
66 kotlin(" jvm" ) version " 2.0.10"
77 kotlin(" plugin.serialization" ) version " 2.0.10"
8- id(" io.ktor.plugin" ) version " 2.3.12 "
8+ id(" io.ktor.plugin" ) version " 3.0.0-rc-1 "
99 id(" org.jetbrains.kotlinx.rpc.plugin" ) version " 0.3.0"
1010}
1111
@@ -35,10 +35,10 @@ dependencies {
3535 implementation(" org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-client" )
3636 implementation(" org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-server" )
3737
38- implementation(" io.ktor:ktor-client-cio-jvm " )
38+ implementation(" io.ktor:ktor-client-cio" )
3939 implementation(" io.ktor:ktor-server-netty-jvm" )
4040 implementation(" ch.qos.logback:logback-classic:1.5.8" )
4141
42- testImplementation(" io.ktor:ktor-server-tests-jvm " )
42+ testImplementation(" io.ktor:ktor-server-test-host " )
4343 testImplementation(" org.jetbrains.kotlin:kotlin-test-junit:2.0.10" )
4444}
You can’t perform that action at this time.
0 commit comments