https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

simon.vergauwen

05/22/2022, 12:09 PM
Hey everyone, Is it possible to depend on c++ or Swift packages for native targets? If yes, does anyone have a small example of either? I can only find big complex setups, with complex Gradle setups.
1
a

Anton Lakotka [JB]

05/23/2022, 8:17 AM
Is it possible to depend on c++ or Swift packages for native targets?
You can do that through C wrappers or
@objc
attribute https://docs.swift.org/swift-book/ReferenceManual/Attributes.html#ID592 Which I guess isn’t the answer you were looking for 😞 I know that @salomonbrys has some experience with the topic.
s

simon.vergauwen

05/23/2022, 12:33 PM
Wrapping a C library would suit me perfectly as well. I'm trying to wrap BCrypt which has a simple C implementation
Thanks for sharing @Anton Lakotka [JB] & @salomonbrys
2 Views