Marc Knaup06/06/2019, 2:51 PM
in Kotlin and
in ObjC/Swift 🙂
Dominaezzz06/06/2019, 3:31 PM
Marc Knaup06/06/2019, 3:32 PM
Dominaezzz06/06/2019, 3:33 PM
Artyom Degtyarev [JB]06/06/2019, 3:57 PM
Marc Knaup06/06/2019, 4:20 PM
seems to be for a different purpose though:
Makes top level function available from C/C++ code with the given name.Even though it's documented I cannot actually use it in my code. It doesn't exist 😮
Artyom Degtyarev [JB]06/06/2019, 4:36 PM
? In example here https://github.com/JetBrains/kotlin-native/tree/master/backend.native/tests/produce_dynamic/simple it looks like this should help. And yes, I might be misleading with it’s purpose, but I’m not sure what kind of name-changing you want to achieve.
Marc Knaup06/06/2019, 4:38 PM
russhwolf06/06/2019, 4:50 PM
in your common code and
@OptionalExpectation annotation class CName
in your native. I haven't tried
actual typealias CName = kotlin.native.CName
on iOS though so I don't know if there's something different for ObjC.
Marc Knaup06/06/2019, 5:22 PM
exports 🙂 iOS code is ObjC which is very different and Swift will be even more different.
russhwolf06/06/2019, 5:41 PM
and not a separate
, I figure maybe it's worth a try. Definitely nothing Swift-specific exists right now though because Kotlin only interops with Obj-C
Marc Knaup06/06/2019, 5:42 PM
in my project. Neither in common code, nor in platform code 😕
svyatoslav.scherbina06/07/2019, 8:03 AM
doesn’t affect produced Objective-C/Swift API.
is not available yet.
russhwolf06/07/2019, 12:05 PM