tauri-plugin-blew 0.2.3

Tauri plugin for the blew BLE library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn main() {
    let mut builder = tauri_plugin::Builder::new(&[]);
    if let Ok(android_dir) = std::env::var("DEP_BLEW_ANDROID_DIR") {
        builder = builder.android_path(android_dir);
    }
    builder.build();

    let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
    let mobile = target_os == "ios" || target_os == "android";
    println!("cargo:rustc-check-cfg=cfg(desktop)");
    println!("cargo:rustc-check-cfg=cfg(mobile)");
    if mobile {
        println!("cargo:rustc-cfg=mobile");
    } else {
        println!("cargo:rustc-cfg=desktop");
    }
}