thank you for response
Well i've added the observer.def file in src/nativeInterops
and added this part in kotlin block in gradle.build.kts
Copy code
ios {
compilations.all {
cinterops {
val observer by creating {
defFile(project.file("src/nativeInterop/cinterop/observer.def"))
packageName("kmp.observer")
}
}
}
}
but i'm always getting unresolved reference at
kmp
in
import kmp.observer
statment
Ahmed Elkhodery
08/19/2023, 5:14 PM
Well never mind i was using it i a common sourceset that includes iosSimulator target as well as ios() target, without adding the introp to the iosSimulator() target,
doing so fixed the problem