Olivier Patry
09/19/2024, 3:39 PMjava.lang.*
imports in code written in src/commonMain/kotlin
?
If that has an incidence, my module currently uses multiplatform
plugin and adds jvm()
and androidTarget()
targets.jw
09/19/2024, 3:44 PMjw
09/19/2024, 3:45 PMOlivier Patry
09/19/2024, 3:47 PMjw
09/19/2024, 3:47 PMOlivier Patry
09/19/2024, 3:48 PMcommonMain
, maybe TODAY, I do not have any non Jvm target, but tomorrow I willjw
09/19/2024, 3:48 PMjw
09/19/2024, 3:49 PMjw
09/19/2024, 3:49 PMOlivier Patry
09/19/2024, 3:50 PMcommonMain
has the potential to be executed on any target (defined or not)
so, whatever the target I add in my project, this code should compile (from my perspective)
I understand I can't achieve that, right?jw
09/19/2024, 3:51 PMOlivier Patry
09/19/2024, 4:03 PMOlivier Patry
09/19/2024, 4:05 PMeygraber
09/19/2024, 7:01 PMjw
09/19/2024, 7:02 PMeygraber
09/19/2024, 7:03 PMOlivier Patry
09/19/2024, 7:04 PMjvmMain
& androidMain
, you have it by default, for commonMain
, you have to opt-in..
Other dependencies are all explicit AFAIK, JDK types are the only explicit ones for Jvm compatible targets, don't know for JS runtime on other targetsjw
09/19/2024, 7:04 PMeygraber
09/19/2024, 7:06 PMjw
09/19/2024, 7:08 PMrunBlocking
from kotlinx.coroutines in common, for example, but when you add a JS target that will now fail to compile.jw
09/19/2024, 7:09 PM