I recently upgraded from Kotlin 1.8.22 to 1.9… I’m...
# ios
j
I recently upgraded from Kotlin 1.8.22 to 1.9… I’m getting compiler errors for C interop things saying that these APIs need to be opted in with
ExperimentalForeignAPI
. What does that mean, is it a risk, and why did this happen when I upgraded?
r
Kotlin 1.9 is more explicit about which individual APIs are stable and which aren't. That opt-in marks APIs that might change or be replaced in the future. My sense is they're trying to leave room to possibly evolve how cinterop APIs are generated or what they look like in the stdlib, since they're not very idiomatic currently
🙌 1
k
Yes. And we would like to avoid cinterop auto generated api in public API of user libraries