Joel Denke
02/14/2024, 1:56 PMtargets._withType_<KotlinNativeTarget>().configureEach *{*
compilations.configureEach *{*
compilerOptions.configure *{*
freeCompilerArgs.addAll("kotlinx.cinterop.ExperimentalForeignApi")
}
}
However if I do not add this into all targets, I get warning that the experimental API not resolved. But if only in iOS, I instead get warnings in my code not understand I have this in iosMain folder.
What is the correct way of adding these flags so I can use kotlinx cinterop properly?