veilid/veilid-flutter/rust/src/lib.rs

18 lines
394 B
Rust
Raw Normal View History

mod dart_ffi;
mod dart_isolate_wrapper;
2022-06-29 17:39:54 +00:00
mod tools;
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-12-01 19:32:02 +00:00
veilid_core::veilid_core_setup_android(env, ctx);
2022-01-31 13:52:11 +00:00
}