We have a library to be shared between jvm(server) and jvm(android). It is to move to multi-platform because services like http can vary between these platforms.
It seems ‘import java.???’ is simply not possible in common. This makes sense for many calls, as these will involve calls to the jvm platform itself. However I would have thought some calls in things like java.lang.math would simply produce inline code, but if I have it correctly, I would it seems nothing can be imported from java?
This brings to the main question, with code that is common between two platforms, is there a standard or recommended way to share code between two platforms? I was thinking of a source folder added to the source folders for both projects, but perhaps there is a better way?