KGraphQL icon indicating copy to clipboard operation
KGraphQL copied to clipboard

[Idea] Support multi-platform targeting

Open tristancaron opened this issue 7 years ago • 3 comments

Kotlin is now multi-platform (JVM/JavaScript/Native).

Currently the project can only target JVM. It would be nice to support the others platforms as well.

Do you you think it's relevant?

tristancaron avatar Dec 30 '17 09:12 tristancaron

That's nice idea, I love the fact that Kotlin is pushing for multiplatform. Most certainly it would take some work, because right now KGraphQL heavily depends on Jackson library for JSON streaming.

I still need some time to do my research, and find out what would be the best approach. Are you interested in contributing in this effort, or is this just an idea?

pgutkowski avatar Jan 03 '18 16:01 pgutkowski

I was interested by contributing actually. I really love how we can use this library. I was thinking about using it in my company and suggest improvement if necessary.

Regarding the multi-platform, Jackson is not the only issue. Reflection is also. AFAIK, JavaScript reflection is not under development yet (https://discuss.kotlinlang.org/t/kotlin-js-full-reflection-api/4529/2). Maybe we can use kapt?

tristancaron avatar Jan 04 '18 13:01 tristancaron

I might be too late to the party, but you can replace the Jackson library with Kotlinx-Serialization and I can tell it's production ready. So, Time to go Multiplatform?

andylamax avatar Mar 21 '19 03:03 andylamax