Hello, can I add a `.h` and a `.a` into KMP for iO...
# ios
r
Hello, can I add a
.h
and a
.a
into KMP for iOS ?
a
It can be done using cinterop: https://kotlinlang.org/docs/native-c-interop.html Since documentation is a bit complex, I would recommend to search for some samples on GitHub for easy start.
That's how we did it in Compose, but the configuration also includes build phase, what you don't need there: https://github.com/JetBrains/compose-multiplatform-core/blob/e18a7d4f4c8bd10521736328e377ef00f663952f/compose/ui/ui-uikit/build.gradle#L54
r
Thank's ! I will check it out