https://kotlinlang.org logo
Title
m

Mohit Gurumukhani

08/16/2018, 5:03 PM
I am using experimental multiplatform features from Kotlin 1.2.60 and the build is successful only by adding @ExperimentalMultiplatform annotation to every class or function that uses it. Is there a way around this?
m

Mohit Gurumukhani

08/16/2018, 6:52 PM
Cool! Also, how do I add a compiler flag in gradle to common code (all examples are for JVM) like -Xuse-Experimental.
d

dsavvinov

08/17/2018, 8:08 AM
@Mohit Gurumukhani something like that:
compileTestKotlin {
    kotlinOptions.freeCompilerArgs = ["-Xuse-experimental"]
}