mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 07:33:29 +00:00
Lock dep for Android builds only
This commit is contained in:
parent
ded1bae8e0
commit
ebc78f442b
|
@ -62,7 +62,6 @@ tokio = "1.38"
|
||||||
tokio-stream = "0.1.15"
|
tokio-stream = "0.1.15"
|
||||||
tokio-util = "0.7.11"
|
tokio-util = "0.7.11"
|
||||||
tracing = "0.1.40"
|
tracing = "0.1.40"
|
||||||
tracing-android = "0.2.0"
|
|
||||||
tracing-subscriber = "0.3.18"
|
tracing-subscriber = "0.3.18"
|
||||||
tracing-test = "0.2.5"
|
tracing-test = "0.2.5"
|
||||||
uhlc = "0.6.0" # Must follow version used by specta
|
uhlc = "0.6.0" # Must follow version used by specta
|
||||||
|
|
|
@ -102,7 +102,6 @@ tokio = { workspace = true, features = [
|
||||||
tokio-stream = { workspace = true, features = ["fs"] }
|
tokio-stream = { workspace = true, features = ["fs"] }
|
||||||
tokio-util = { workspace = true, features = ["io"] }
|
tokio-util = { workspace = true, features = ["io"] }
|
||||||
tracing = { workspace = true }
|
tracing = { workspace = true }
|
||||||
tracing-android = { workspace = true }
|
|
||||||
tracing-subscriber = { workspace = true, features = ["env-filter"] }
|
tracing-subscriber = { workspace = true, features = ["env-filter"] }
|
||||||
uuid = { workspace = true, features = ["v4", "serde"] }
|
uuid = { workspace = true, features = ["v4", "serde"] }
|
||||||
webp = { workspace = true }
|
webp = { workspace = true }
|
||||||
|
@ -160,6 +159,9 @@ icrate = { version = "0.1.2", features = [
|
||||||
"Foundation_NSNumber",
|
"Foundation_NSNumber",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
|
[target.'cfg(target_os = "android")'.dependencies]
|
||||||
|
tracing-android = "0.2.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
# Workspace dependencies
|
# Workspace dependencies
|
||||||
globset = { workspace = true }
|
globset = { workspace = true }
|
||||||
|
|
|
@ -258,16 +258,14 @@ impl Node {
|
||||||
|
|
||||||
let registry = registry();
|
let registry = registry();
|
||||||
|
|
||||||
#[cfg(target_os = "android")]
|
|
||||||
let registry = registry.with(tracing_android::layer("com.spacedrive.app").unwrap());
|
|
||||||
|
|
||||||
let registry = registry
|
let registry = registry
|
||||||
.with(
|
.with(
|
||||||
tracing_subscriber::fmt::layer()
|
tracing_subscriber::fmt::layer()
|
||||||
.with_file(true)
|
.with_file(true)
|
||||||
.with_line_number(true)
|
.with_line_number(true)
|
||||||
.with_ansi(false)
|
.with_ansi(false)
|
||||||
// .with_writer(logfile)
|
.with_target(false)
|
||||||
|
.with_writer(logfile)
|
||||||
.with_filter(EnvFilter::from_default_env()),
|
.with_filter(EnvFilter::from_default_env()),
|
||||||
)
|
)
|
||||||
.with(
|
.with(
|
||||||
|
@ -278,6 +276,9 @@ impl Node {
|
||||||
.with_filter(EnvFilter::from_default_env()),
|
.with_filter(EnvFilter::from_default_env()),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#[cfg(target_os = "android")]
|
||||||
|
let registry = registry.with(tracing_android::layer("com.spacedrive.app").unwrap());
|
||||||
|
|
||||||
registry.init();
|
registry.init();
|
||||||
|
|
||||||
std::panic::set_hook(Box::new(move |panic| {
|
std::panic::set_hook(Box::new(move |panic| {
|
||||||
|
|
Loading…
Reference in a new issue