I am using the project structure you get when you select the project type in the title
with the added Shared Code module as per the multiplatform Android & IOS tutorial instructions.
While I understand that the common module has to be kotlin, since it is interoperable with java should I not be able to import a set of java data model classes to use with the common.kt file in the src/commonMain/kotlin code subdirectory ?
If i add a libs subdirectory at the module root (just to test the viability of using the library) and put
my prebuilt java jar containing my data classes in there , and add it as a dependancy to the module representing the source in androidMain/kotlin/ . I can import my java classes and use them in actual.kt
if i do the exact same dependancy add to the module representing commonMain/kotlin i cannot import the java classes, the import does not see the jar at all
i see that the iml file for the SharedCode_androidMain module has an entry specifying the classes from the jar
and that the SharedCode_commonMain does not, even though i execute the exact same steps through adding dependencies i the project structure popup.
If this is not “legal” how is Idea/kotlin preventing the dependency from being valid at least for the code editing?
I was hoping to avoid having to convert all my java data classes to kotlin so that I can eventually access and use them on the individual platforms (well specifically ios as I can already use them on android).