veilid/veilid-flutter/rust/src/lib.rs
2022-06-29 13:39:54 -04:00

18 lines
401 B
Rust

mod dart_ffi;
mod dart_isolate_wrapper;
mod tools;
#[cfg(target_os = "android")]
use jni::{objects::JClass, objects::JObject, JNIEnv};
#[cfg(target_os = "android")]
#[no_mangle]
#[allow(non_snake_case)]
pub extern "system" fn Java_com_veilid_veilid_VeilidPlugin_init_1android(
env: JNIEnv,
_class: JClass,
ctx: JObject,
) {
veilid_core::veilid_core_setup_android_no_log(env, ctx);
}