2nd question of the day... I know I can use ktor a...
# multiplatform
m
2nd question of the day... I know I can use ktor as a client for Android and iOS, but what about other native platforms? Maybe have an interface
Api
in
common
, an implementation of it based on Ktor in
mobileCommon
and something else for windows?
c
What kind of windows are you talking about? Is it windows phone?
m
desktop
I'm just writing some code to check how far can I get with sharing code between all the support platforms
c
We are working on curl backend that probably should work on windows as well
But for now windows is not supported yet
m
I see
c
the underlying libraries should already work on windows except several particular features
for example, there is no windows event queue integration so you should write your own coroutine dispatcher and so on
m
but the http client part is probably better off implemented with specific windows tools then, correct?
c
Yes, but curl backend covers a lot of platforms
also Windows is not high priority platform
m
I can imagine why
c
we can't implement everything at once
m
this is really just a proof of concept, might be better to target a different platform
m
On Windows libcurl in samples currently works, but only on developers computer, not distributable: https://github.com/JetBrains/kotlin-native/pull/2348
m
awesome, I really just need it running on my machine