fix(log): use Swift OSLog instead of oslog Rust binding (#262)

This commit is contained in:
Lucas Fernandes Nogueira
2023-02-23 14:17:15 -03:00
committed by GitHub
parent 22f987bf24
commit 961602bd1b
8 changed files with 117 additions and 89 deletions
+12 -9
View File
@@ -1,12 +1,15 @@
fn alias(alias: &str, has_feature: bool) {
if has_feature {
println!("cargo:rustc-cfg={alias}");
}
}
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
use std::process::exit;
fn main() {
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap();
let mobile = target_os == "ios" || target_os == "android";
alias("desktop", !mobile);
alias("mobile", mobile);
if let Err(error) = tauri_build::mobile::PluginBuilder::new()
.ios_path("ios")
.run()
{
println!("{error:#}");
exit(1);
}
}