Hi guys , I would like to know how to import and u...
# multiplatform
e
Hi guys , I would like to know how to import and use a KLib
k
context? kilb is internal. it's generally not something you need to worry about outside of publishing if you intend for it to be consumed by another KMP module.
e
I’m trying to import datkt.sodium in my kotlin library which is a KLib (sodium.klib) so I’m trying to figure out away to use it
I did install it with klib install
k
is it not published to maven like any other Kotlin artifact?
e
I don’t really know , there is no much information in the repo : https://github.com/datkt/sodium , with NPM the only source
and what am thinking by using it I can solve the dependencies in iOS and Java at the same time cause it is a binding for the Native library , am I wrong ?
k
well, kotlin/native and kotlin/jvm are independent things. for java <-> native integration you need JNI
e
okay so I guess I got it wrong 😕 my though was I will create one library for both , thank bro 🙏