I was following the below article for creating `mu...
# kotlin-native
s
I was following the below article for creating
multi-platform project
https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html Can anyone help me to add
kotlinx.serialization
dependency to
commonMain
s
Please take a look at KotlinConf App which uses kotlinx.serialization in common code: https://github.com/JetBrains/kotlinconf-app/blob/master/common/build.gradle#L18 Also you probably need to add some of these repositories: https://github.com/JetBrains/kotlinconf-app/blob/master/build.gradle#L21 Library versions can be found here: https://github.com/JetBrains/kotlinconf-app/blob/master/gradle.properties
t
Alternatively you can have a look at this smaller example I put together recently: https://github.com/novoda/spikes/tree/master/multiplatform-http
s
@svyatoslav.scherbina I have done that, but I am not able to import that library files in common module
s
What do you mean?
s
@svyatoslav.scherbina I have added
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serialization_version"
in commonMain dependencies, but I am not able to access that library
@svyatoslav.scherbina I have added
maven { url "<http://kotlin.bintray.com/kotlin-dev>" }
. Now it’s working fine. Thanks for your help.