Hello, is it possible to use both Compose and ktor...
# compose-desktop
j
Hello, is it possible to use both Compose and ktor-client-curl in the same project? It seems to use ktor-client-curl you need to target native desktop, but the Compose Desktop template in Intellij seems to only target the JVM platform.
b
No it's not possible. Why do you need curl ktor engine? There are plenty of engines to choose from for jvm.
2
j
Well, I need ktor to send an API to a flask REST API on my desktop, and the docs seem to indicate you need ktor-curl https://ktor.io/docs/http-client-engines.html#desktop
b
Ok, flask is irrelevant is this case as it's just an implementation detail of your HTTP server. Any client engine will do. The docs are a bit misleading as they refer only to native desktop platforms as desktop, but jvm can also be treated as desktop platform (not just server).
Hope that makes sense. All "server", "java" or "jvm" platform docs for ktor-client should apply to your compose desktop app.
j
@Big Chungus Thank you! You might want to reference this issue in the one you've just opened: https://youtrack.jetbrains.com/issue/KTOR-3794
b
I will mention it, however note that your issue is false-positive 😉
🙏 1
😅 1