Is there a way to create Ical files in kotlin nati...
# kotlin-native
m
Is there a way to create Ical files in kotlin native without creating a library by myself? Trying to understand RFC-5545 but its a bit above my head.
n
Have you tried using the Libical ( https://libical.github.io/libical/ ) library?
m
Haven’t tried/heard of it. I’ll try to look into it, also would be the first time implementing another language with kotlin.
u
just generate c-binding with cinterop for libical,as long as it pure c
n
Over 70% of Libical's code base is written in C. A C API is provided (uses the C99 standard).
m
I’m really new to this. How can I create those .def files to from a cmake project? or does it also need other things🤨😕?
u
you should wrote .def by yourself. you can found a lot of sample at: Samples Although it's marked as obsolete, most of the def file's declarations are not obsolete, you can get examples by git switching HEAD to an earlier version. You can also check this page for an example of def https://kotlinlang.org/docs/native-c-interop.html
m
Is there a way to add the .h files in a folder and reference them in the .def file? Currently I’m really struggling with the cinterop gradle task not finding the .h file. no clue how to get it in the terminal, have installed kotlin through brew (kotlinc works).
167 Views