Skip to content

Commit 868ffad

Browse files
authored
fix(winit): Dont enable rfd on android (#1596)
1 parent c35ca36 commit 868ffad

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

crates/freya-winit/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ futures-channel = { workspace = true }
5151
futures-util = { workspace = true }
5252
rustc-hash = { workspace = true }
5353

54-
# Crash handler
55-
rfd = { workspace = true }
56-
5754
# Performance
5855
hotpath = { workspace = true }
5956

@@ -66,6 +63,10 @@ tray-icon = { workspace = true, optional = true }
6663
# Clipboard
6764
freya-clipboard = { workspace = true }
6865

66+
[target.'cfg(not(target_os = "android"))'.dependencies]
67+
# Crash handler
68+
rfd = { workspace = true }
69+
6970
[target.'cfg(target_os = "linux")'.dependencies]
7071
gtk = { version = "0.18.2", optional = true }
7172

crates/freya-winit/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub mod tray {
4646
pub fn launch(launch_config: LaunchConfig) {
4747
use std::collections::HashMap;
4848

49-
#[cfg(not(debug_assertions))]
49+
#[cfg(all(not(debug_assertions), not(target_os = "android")))]
5050
{
5151
let previous_hook = std::panic::take_hook();
5252
std::panic::set_hook(Box::new(move |panic_info| {

0 commit comments

Comments
 (0)