touchlab / KaMPKit

KaMP Kit by Touchlab. A collection of code & tools designed to get your mobile team started quickly w/Kotlin Multiplatform
https://touchlab.co/
Apache License 2.0
2.2k stars 199 forks source link

Support for graphql apis #88

Closed alchemistgo87 closed 4 years ago

alchemistgo87 commented 4 years ago

Is there any proper solution to support graphql apis in the Kotlin Multiplatform?

russhwolf commented 4 years ago

There's active work happening right now to move the Apollo Android client to KMP. A bunch of stuff merged in the last couple days if you want to check it out. This PR added a sample app yesterday that might be helpful: https://github.com/apollographql/apollo-android/pull/2136. There's also a couple other community libraries you can examine like https://github.com/yshrsmz/kgql and https://github.com/suparngp/kotlin-multiplatform-projects/tree/master/graphql

Integrating a GraphQL client is a bit out-of-scope for the KaMPKit template project as currently structured but we might add some documentation down the road about libraries worth using in other use-cases, and will certainly consider GraphQL usage when doing so.

alchemistgo87 commented 4 years ago

@russhwolf Thanks a lot for the recommendations.