Join Slack
Powered by
Hello, can I add a `.h` and a `.a` into KMP for iO...
# ios
r
Raphael TEYSSANDIER
07/30/2024, 11:13 AM
Hello, can I add a
.h
and a
.a
into KMP for iOS ?
a
Andrei Salavei
07/30/2024, 11:47 AM
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.
Andrei Salavei
07/30/2024, 11:53 AM
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
Raphael TEYSSANDIER
07/30/2024, 12:21 PM
Thank's ! I will check it out
3
Views
Open in Slack
Previous
Next