Kite Ssot Native Opt Ins Extension
Kotlin/Native opt-in markers, inside kiteSsot { nativeOptIns { ... } }.
kiteSsot {
nativeOptIns {
add("kotlin.experimental.ExperimentalObjCRefinement")
}
}Content copied to clipboard
Obj-C and cinterop calls each want an @OptIn(...) above them. This block sets the markers once at the compiler level, and only on Native compilations, where those markers actually resolve. The annotations leave your call sites and your shared code is never edited.
An empty nativeOptIns { } already does useful work. Opening the block turns the feature on, and the built-in set covers the usual interop cases.