veilid/veilid-flutter/rust/src/lib.rs
2022-12-01 19:08:40 -05:00

20 lines
423 B
Rust

#![recursion_limit = "256"]
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(env, ctx);
}