https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

martmists

08/02/2022, 1:53 PM
Is there an easier way to target all platforms than this?
Copy code
jvm()
    js(IR) {
        browser()
        nodejs()
    }
    androidNativeX64()
    androidNativeX86()
    androidNativeArm32()
    androidNativeArm64()
    ios()
    watchos()
    tvos()
    linuxX64()
    linuxArm64()
    linuxArm32Hfp()
    linuxMips32()
    linuxMipsel32()
    mingwX64()
    mingwX86()
    macosX64()
    macosArm64()
    wasm32()
d

Dominaezzz

08/02/2022, 3:12 PM
Yes. iirc the docs have an example.
There's
presets
list you can do a for each on.
Then targetWithPreset
2 Views