louiscad
08/06/2019, 4:52 PM.h
+ .c
or .m
) into a Kotlin/Native library, is setting up C-interop enough, or do I also need to do something special to export the file?Dominaezzz
08/06/2019, 5:17 PMlouiscad
08/06/2019, 5:33 PMDominaezzz
08/06/2019, 5:34 PMDominaezzz
08/06/2019, 5:34 PMlouiscad
08/06/2019, 5:37 PM.a
, .o
, .so
or alike?Dominaezzz
08/06/2019, 5:37 PMDominaezzz
08/06/2019, 5:38 PMDominaezzz
08/06/2019, 5:40 PMDominaezzz
08/06/2019, 5:40 PMlouiscad
08/06/2019, 5:43 PMNSObject
) wrapper that unregisters on deallocation (instead of crashing the app later on subsequent value changes). Like most Apple API's, it's available straightaway from Kotlin/Native. If I use it in Obj-C that Kotlin/Native uses thanks to cinterop, I'd have to set additional configuration? How can I know what configuration need to be added?Dominaezzz
08/06/2019, 5:45 PMDominaezzz
08/06/2019, 5:46 PMDominaezzz
08/06/2019, 5:46 PMDominaezzz
08/06/2019, 5:46 PMDominaezzz
08/06/2019, 5:46 PMDominaezzz
08/06/2019, 5:47 PMDominaezzz
08/06/2019, 5:49 PMlouiscad
08/06/2019, 6:06 PMDominaezzz
08/06/2019, 6:07 PMmsink
08/06/2019, 6:36 PM.def
file, like this:
https://github.com/JetBrains/kotlin-native/blob/master/performance/cinterop/src/nativeInterop/cinterop/struct.deflouiscad
08/06/2019, 7:28 PMlouiscad
08/11/2019, 10:41 PM.def
file because I had 3 files (that I wrote in AppCode) and prefered to keep them that way and allow syntactic coloration on GitHub.
I succeeded into making custom Obj-C source code interop with Kotlin, but I ended up putting this aside for other reason detailed in the commit message if you're curious.
https://github.com/LouisCAD/Splitties/commit/daaa98e5de78a2cd831096b780bdd283d23ba47e
Thanks for the help, was interesting to learn about, despite me not falling in love with Obj-C 😅