Thread
#multiplatform
    j

    juh juh

    1 month ago
    How can I pass compiler arguments to all compile targets in kotlin/multiplatform? To be specific, I want to add
    -Xno-param-assertions argument
    to my release builds to remove runtime null assertions for all the arguments
    Oliver.O

    Oliver.O

    1 month ago
    tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().configureEach {
            kotlinOptions.freeCompilerArgs += listOf(...)
        }
    j

    juh juh

    1 month ago
    Thanks! It works