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();
if std::env::var("CARGO_CFG_TARGET_OS").unwrap().as_str() == "macos" {
println!("Building plugin for macOS");
swift_rs::SwiftLinker::new("13.0")
.with_package("tauri-plugin-plauth", "./macos/")
.link();
}
}