Hey guys, how can we add a local jar as a dependen...
# multiplatform
h
Hey guys, how can we add a local jar as a dependency I have iOS, Android, Desktop If i add it inside
androidMain
it works, but if I add it in
commonMain
or
iOS
it doesn't work Also not so sure if it'll work for desktop because it targets macos, windows and linux
m
unless your jar contains only kotlin code with zero references to JDK classes, or the project targets only JVM compatible sourcesets (android, desktop), you won't be able to add that jar to commonMain
Since you are targeting apple platforms, your common sources can contain only pure kotlin code and dependencies, no direct java imports.
h
Thanks!