SrSouza
09/30/2020, 5:09 PMmbonnin
09/30/2020, 5:11 PMmbonnin
09/30/2020, 5:11 PMdan.the.man
09/30/2020, 5:14 PMrusshwolf
09/30/2020, 5:18 PMfaogustavo
09/30/2020, 8:27 PMAndrew
09/30/2020, 8:54 PMmbonnin
09/30/2020, 8:59 PMcommonMain
but still need to declare your targets:
kotlin {
jvm()
iOS()
android()
etc...
}
faogustavo
09/30/2020, 9:15 PMrusshwolf
09/30/2020, 9:31 PMkotlin {
presets.forEach {
targetFromPreset(it)
}
}
but you'll need to special-case some of them so it isn't that simple. In particular you need extra config to publish Android (but you might not want to have Android at all if you're pure Kotlin and JVM is sufficient), there's a KotlinJvmWithJavaTargetPreset you probably don't need unless you're including Java sources, and Javascript has targets for Legacy, IR, or Both and you can only pick one.faogustavo
09/30/2020, 9:33 PMfaogustavo
09/30/2020, 9:34 PMrusshwolf
09/30/2020, 9:36 PMfaogustavo
09/30/2020, 9:48 PM