follow up question...is it possible to write a module in completely common kotlin and add it to any project? Or do I have to explicitly declare jvm/js/linux/ios/etc
For now, you can just iterate through all presets and build each one. I do it like this in Multiplatform Settings:
Copy code
kotlin {
...
presets.forEach {
if (it.name == "jvmWithJava") return@forEach // Probably don't need this, and it chokes on Android plugin
if (targets.findByName(it.name) == null) {
targetFromPreset(it)
}
}
}