Join Slack
Powered by
is it possible to interop with objc/swift code tha...
# kotlin-native
a
alec
09/17/2018, 7:04 PM
is it possible to interop with objc/swift code that isn’t platform artifacts? I see info like
https://blog.jetbrains.com/kotlin/2017/11/kotlinnative-v0-4-released-objective-c-interop-webassembly-and-more/
to interop with platform libraries like UIKit and Foundation but I’m wondering if theres a way to interop with other framework artifacts or just header files that are part of my source directory? I could have sworn I saw it somewhere…
o
olonho
09/17/2018, 7:18 PM
https://github.com/JetBrains/kotlin-native/blob/master/OBJC_INTEROP.md
a
alec
09/17/2018, 7:22 PM
do i need to use the
cinterop
tool on an objective-c header? Do one of the sample projects cover this case?
o
olonho
09/17/2018, 8:40 PM
for example, conf app:
https://github.com/JetBrains/kotlinconf-app/blob/2de03619f5793a2e37314b96e25581630f94f5d3/ios/build.gradle#L22
a
alec
09/17/2018, 8:41 PM
this is perfect thank you
o
olonho
09/17/2018, 8:46 PM
although note that this one uses old Gradle DSL, but general interop concepts shall be covered
Open in Slack
Previous
Next