Hi, Is it possible to get context at androidNativ...
# kotlin-native
v
Hi, Is it possible to get context at androidNativeArm64 ??? Because I Must Build Library include .so for Android(can’t use androidMain) + .framework for iOS Ex: getPackageName…. I think it is no. Then some ways to do this? Thanks
s
Anything available in the NDK will be available to you in K/N. That said, the best way to share code between Android and iOS is with Multiplatform unless your Android project is an NDK project. If it isn't and you insist on making a native android library you will also need to mess around with your own jni wrappers. K/N does nothing for you there.