Is there a way to make cinterop generate Obj-C -&g...
# kotlin-native
l
Is there a way to make cinterop generate Obj-C -> Kotlin bindings that have generics? Currently,
id <SomeProtocol>
ends up being
Any?
. I tried to add
extraOpts("-Xobjc-generics")
in the cinterop from my
build.gradle.kts
, but then, the cinterop gradle task fails, telling the option is unknown.
k
Generics are output-only as far as I know
l
Thanks for the info. The code should still work. Damn Obj-C + KVO (key value observing) are making me struggle!