https://kotlinlang.org logo
Title
m

Matouš Skála

11/02/2018, 10:44 AM
What's currently the recommended way for creating a Kotlin/Native module that would be used both as an iOS framework and an Android library? After some research, I have found there are three Gradle plugins that I can use: 1. konan (https://kotlinlang.org/docs/tutorials/native/gradle-for-kotlin-native.html) 2. platform.native (https://kotlinlang.org/docs/reference/native/gradle_plugin.html) 3. multiplatform (https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html)
m

msink

11/02/2018, 10:47 AM
konan
is deprecated,
platform.native
and
multiplatform
supported in gradle, but for now only
multiplatform
supported in IDEA.
m

Matouš Skála

11/02/2018, 10:58 AM
Thanks! And just to understand the difference between
multiplatform
and
platform.native
, I would use
multiplatform
if I need to use some platform-specific APIs, and
platform.native
otherwise, right?
m

msink

11/02/2018, 11:09 AM
multiplatform
can be used for anything, but it is a little overcomplicated.