2

Does Kotlin/native support any library written in Kotlin, for sharing common code with an iOS project ?

Specifically is there a way to use the apollo-android library in a shared kotlin/native project?

Patric
  • 342
  • 4
  • 19

1 Answers1

1

Short answer, no.

K/N will not support just any library written in Kotlin. I've looked at Apollo specifically, and much of that is actually Java, so you'd be pretty far off.

K/N supports "standard lib" Kotlin, which is a common subset of Kotlin, plus native extensions. Most likely, if you were going to do something like Apollo you'd want to build a multiplatform library. It would be a fair amount of work.

Kevin Galligan
  • 16,159
  • 5
  • 42
  • 62
  • 1
    Do you possibly have documentation links for what is actually available from "standard lib" and "native extensions" please? – Peter Mar 10 '19 at 17:23