Hello, we’d like to use Filament (google’s rendere...
# kotlin-native
g
Hello, we’d like to use Filament (google’s renderer) on both platforms (Android and iOS). Is it correct we should use cinterop to create a filament.klib and use that? Or is there already something else out there to ease the process?
k
Cinterop is specific to Kotlin/Native
for Android you'll want a JAR/AAR
also, it seems Filament is written in C++, not C
s
@Kris Wong can't you target android native too with KN?
k
not at this time
r
Hi! One of the authors of Filament here :)
❤️ 1
We already provide AARs for Android and we do have iOS builds, but not C wrappers. The APIs are C++ although they are very easy to call from C (see the JNI layer)
k
seems like it's not too much of a stretch to get it working for K/N and K/JVM, then
will just have to maintain a C shim that covers the necessary APIs
I have done exactly that for libPhoneNumber
r
My plan is to use cppast to generate the C bindings
g
Salut Romain, sounds good! Do you plan on having it packaged as a KMP at some point or are you counting on us the community do it on top of the C bindings & co?