https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

menegatti

11/29/2018, 5:16 PM
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

cy

11/29/2018, 5:18 PM
What kind of windows are you talking about? Is it windows phone?
m

menegatti

11/29/2018, 5:20 PM
desktop
I'm just writing some code to check how far can I get with sharing code between all the support platforms
c

cy

11/29/2018, 5:21 PM
We are working on curl backend that probably should work on windows as well
But for now windows is not supported yet
m

menegatti

11/29/2018, 5:22 PM
I see
c

cy

11/29/2018, 5:23 PM
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

menegatti

11/29/2018, 5:24 PM
but the http client part is probably better off implemented with specific windows tools then, correct?
c

cy

11/29/2018, 5:25 PM
Yes, but curl backend covers a lot of platforms
also Windows is not high priority platform
m

menegatti

11/29/2018, 5:25 PM
I can imagine why
c

cy

11/29/2018, 5:25 PM
we can't implement everything at once
m

menegatti

11/29/2018, 5:26 PM
this is really just a proof of concept, might be better to target a different platform
m

msink

11/29/2018, 5:38 PM
On Windows libcurl in samples currently works, but only on developers computer, not distributable: https://github.com/JetBrains/kotlin-native/pull/2348
m

menegatti

11/29/2018, 5:41 PM
awesome, I really just need it running on my machine