I wonder how hard it would be for cinterop to support obj-c++? for instance, the only difference in my header files is that the forward declarations use namespacing. I understand it would be more problematic if there were c++ headers included.
i
ivan.savytskyi
03/27/2019, 1:58 PM
Not sure what do you mean but it's already supported
k
Kris Wong
03/27/2019, 1:59 PM
to my knowledge objective-c is supported
Kris Wong
03/27/2019, 1:59 PM
obj-c++ is a little different
Kris Wong
03/27/2019, 2:00 PM
Task :cinteropPhonenumbersIos FAILED
Exception in thread "main" java.lang.Error: c_interop/libPhoneNumber_iOS.framework/Headers/AWPhoneNumberMatch.h131: error: unknown type name 'namespace'
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:145)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.indexDeclarations(Indexer.kt:938)
at org.jetbrains.kotlin.native.interop.indexer.IndexerKt.buildNativeIndexImpl(Indexer.kt:928)
at org.jetbrains.kotlin.native.interop.indexer.NativeIndexKt.buildNativeIndex(NativeIndex.kt:56)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:245)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:36)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:88)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:18)
Kris Wong
03/27/2019, 2:25 PM
looks like I can probably get what I want with categories and "private" headers