2022-02-07 02:18:42 +00:00
|
|
|
use cfg_if::*;
|
|
|
|
|
|
|
|
cfg_if! {
|
|
|
|
if #[cfg(not(target_arch = "wasm32"))] {
|
|
|
|
mod dart_ffi;
|
|
|
|
mod dart_isolate_wrapper;
|
|
|
|
mod dart_serialize;
|
|
|
|
} else {
|
|
|
|
mod wasm;
|
|
|
|
}
|
|
|
|
}
|
2022-01-31 13:52:11 +00:00
|
|
|
|
2022-01-31 15:11:18 +00:00
|
|
|
#[cfg(target_os = "android")]
|
2022-01-31 13:52:11 +00:00
|
|
|
use jni::{objects::JClass, objects::JObject, JNIEnv};
|
|
|
|
|
2022-01-31 15:11:18 +00:00
|
|
|
#[cfg(target_os = "android")]
|
2022-01-31 13:52:11 +00:00
|
|
|
#[no_mangle]
|
|
|
|
#[allow(non_snake_case)]
|
2022-01-31 15:11:18 +00:00
|
|
|
pub extern "system" fn Java_com_veilid_veilid_VeilidPlugin_init_1android(
|
2022-01-31 13:52:11 +00:00
|
|
|
env: JNIEnv,
|
|
|
|
_class: JClass,
|
|
|
|
ctx: JObject,
|
|
|
|
) {
|
2022-01-31 15:11:18 +00:00
|
|
|
crate::intf::utils::android::veilid_core_setup_android_no_log(env, ctx);
|
2022-01-31 13:52:11 +00:00
|
|
|
}
|