const COMMANDS: &[&str] = &["ping", "authenticate"];
fn main() {
if std::env::var("CARGO_PKG_NAME").unwrap_or_default() != "tauri-plugin-plauth" {
println!("Not building plugin");
return;
}
println!("Building plugin with commands: {:?}", COMMANDS);
tauri_plugin::Builder::new(COMMANDS)
.android_path("android")
.ios_path("ios")
.build();
#[cfg(target_os = "macos")]
{
if std::env::var("CARGO_CFG_TARGET_OS").map(|v| v == "macos").unwrap_or(false) {
println!("Building plugin for macOS");
swift_rs::SwiftLinker::new("13.0")
.with_package("tauri-plugin-plauth", "./macos/")
.link();
}
}
}