Hmm something odd I dont udnerstand why it happens...
# compose-ios
j
Hmm something odd I dont udnerstand why it happens. I do using:
targets._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?