@@ -22,7 +22,6 @@ import kotlinx.rpc.transport.ktor.client.rpc
22
22
import kotlinx.rpc.transport.ktor.client.rpcConfig
23
23
import ktor_all_platforms_app.composeapp.generated.resources.Res
24
24
import ktor_all_platforms_app.composeapp.generated.resources.compose_multiplatform
25
- import org.jetbrains.compose.resources.ExperimentalResourceApi
26
25
import org.jetbrains.compose.resources.painterResource
27
26
28
27
expect val DEV_SERVER_HOST : String
@@ -33,7 +32,6 @@ val client by lazy {
33
32
}
34
33
}
35
34
36
- @OptIn(ExperimentalResourceApi ::class )
37
35
@Composable
38
36
fun App () {
39
37
var serviceOrNull: UserService ? by remember { mutableStateOf(null ) }
@@ -61,7 +59,10 @@ fun App() {
61
59
val news = remember { mutableStateListOf<String >() }
62
60
63
61
LaunchedEffect (service) {
64
- greeting = service.hello(" User from ${getPlatform().name} platform" , UserData (" Berlin" , " Smith" ))
62
+ greeting = service.hello(
63
+ " User from ${getPlatform().name} platform" ,
64
+ UserData (" Berlin" , " Smith" )
65
+ )
65
66
}
66
67
67
68
LaunchedEffect (service) {
@@ -91,7 +92,10 @@ fun App() {
91
92
}
92
93
93
94
AnimatedVisibility (showIcon) {
94
- Column (Modifier .fillMaxWidth(), horizontalAlignment = Alignment .CenterHorizontally ) {
95
+ Column (
96
+ Modifier .fillMaxWidth(),
97
+ horizontalAlignment = Alignment .CenterHorizontally
98
+ ) {
95
99
Image (painterResource(Res .drawable.compose_multiplatform), null )
96
100
}
97
101
}
0 commit comments