Hello,
I’ve been developing a KMM application for Android & iOS. I have a library compiled in C in all Android & iOS architectures. Using cinterops I managed to import the library for iosMain
, androidNativeArm64Main
, androidNativeArm32Main
, androidNativeX64Main
and androidNativeX86Main
.
Afterwards I call my library using actual/expect. The iOS app works as expected, but gradle complains that I need to implement the function for androidMain
aswell when trying to run the android app. If I implement it, when running the app, the function in androidMain
gets called.
So my two questions are the following:
Is there any way I can execute code inside androidNative<architecture>Main
?
Is there any way I can import my library into androidMain
?
Thank you so much