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
McEna
12/22/2023, 12:01 AM
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
McEna
12/22/2023, 12:02 AM
Since you are targeting apple platforms, your common sources can contain only pure kotlin code and dependencies, no direct java imports.