hfhbd
07/05/2022, 12:11 PMjw
07/05/2022, 12:14 PMhfhbd
07/05/2022, 12:16 PM---
static inline int jniExport() {
return JNIEXPORT;
}
static inline int jniCall() {
return JNICALL;
}
I just want to create a JNI function JNIEXPORT int JNICALL Java_Main_hello(JNIEnv *env, jobject obj, jstring from, jint repeat);
Landry Norris
07/05/2022, 3:09 PM__attribute__ ((visibility ("default")))
hfhbd
07/05/2022, 3:12 PM@CName("Java_Main_hello")
. At least using the release build works: https://github.com/hfhbd/kotlinJniLandry Norris
07/05/2022, 3:13 PMRegisterNatives
right now, so I have to use CName anyway to match the symbol name the JVM expects.hfhbd
07/05/2022, 3:14 PMLandry Norris
07/05/2022, 3:15 PMhfhbd
07/05/2022, 3:15 PMLandry Norris
07/05/2022, 3:17 PMhfhbd
07/05/2022, 3:24 PMLandry Norris
07/05/2022, 8:51 PMnatario1
07/07/2022, 8:36 AMandroidNative
testing https://github.com/deepmedia/multiplatform-testing . It downloads and configures an emulator that can run your architecture, builds a test executable and runs it.