File tree 5 files changed +12
-5
lines changed
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.
11
11
compose-bom = " 2024.09.02"
12
12
material3 = " 1.3.0"
13
13
junit = " 4.13.2"
14
- ktor = " 2.3.12 "
14
+ ktor = " 3.0.0-rc-1 "
15
15
kotlinx-serialization-json = " 1.7.3"
16
16
kotlinx-coroutines-core = " 1.9.0"
17
17
logback = " 1.5.8"
Original file line number Diff line number Diff line change 1
1
# Ktor Web App
2
2
Sample application with Kotlin/Js on frontend and Kotlin/Jvm on backend,that uses kRPC with Ktor to communicate.
3
3
4
+ > Warning: the code is broken due to https://youtrack.jetbrains.com/issue/KT-71757/
5
+ > No workarounds for now
6
+
4
7
### Running frontend
5
8
To run frontend in development mode, run this command:
6
9
``` bash
Original file line number Diff line number Diff line change 1
1
[versions ]
2
2
kotlin = " 2.0.10"
3
3
kotlin-wrappers-bom = " 1.0.0-pre.812"
4
- ktor = " 2.3.12 "
4
+ ktor = " 3.0.0-rc-1 "
5
5
kotlinx-serialization-json = " 1.7.3"
6
6
kotlinx-coroutines-core = " 1.9.0"
7
7
logback = " 1.5.8"
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ import kotlin.test.assertEquals
16
16
class ApplicationTest {
17
17
@Test
18
18
fun testRoot () = testApplication {
19
+ application {
20
+ module()
21
+ }
22
+
19
23
val service = createClient {
20
24
installRPC()
21
25
}.rpc(" /api" ) {
Original file line number Diff line number Diff line change 5
5
plugins {
6
6
kotlin(" jvm" ) version " 2.0.10"
7
7
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 "
9
9
id(" org.jetbrains.kotlinx.rpc.plugin" ) version " 0.3.0"
10
10
}
11
11
@@ -35,10 +35,10 @@ dependencies {
35
35
implementation(" org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-client" )
36
36
implementation(" org.jetbrains.kotlinx:kotlinx-rpc-krpc-ktor-server" )
37
37
38
- implementation(" io.ktor:ktor-client-cio-jvm " )
38
+ implementation(" io.ktor:ktor-client-cio" )
39
39
implementation(" io.ktor:ktor-server-netty-jvm" )
40
40
implementation(" ch.qos.logback:logback-classic:1.5.8" )
41
41
42
- testImplementation(" io.ktor:ktor-server-tests-jvm " )
42
+ testImplementation(" io.ktor:ktor-server-test-host " )
43
43
testImplementation(" org.jetbrains.kotlin:kotlin-test-junit:2.0.10" )
44
44
}
You can’t perform that action at this time.
0 commit comments