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

Kaden Wilkinson

11/20/2018, 7:14 PM
Is it currently possible to depend on 3rd party libraries in a Kotlin Multi-platform library project? e.g. I want to write an auth library that wraps Auth0.swift and Auth0.Android that produces a iOS framework and android jar
l

Liliia

11/21/2018, 9:34 AM
Yes, it is possible. Do you have any issues with that?
k

Kaden Wilkinson

11/21/2018, 3:58 PM
Yeah I found that Kotlin cannot depend on pure swift libraries so unless I write a Obj-C wrapper on top of it first not really possible. I don't want to do that because than I would have
Auth0.swift -> Obj-C wrapper framework -> Kotlin -> Swift -> Obj-C -> JS
We are working on moving ReactNative business logic down to native code and thought it would be cool if we could share the code with Kotlin.