Skip to content

Commit

Permalink
Fix android compilation (linking fails)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jan 5, 2025
1 parent 981904d commit d76e1b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/blitz-dom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ taffy = { workspace = true }
# Linebender dependencies
parley = { workspace = true }
peniko = { workspace = true }
arboard = { workspace = true, optional = true }

# Other dependencies
slab = { workspace = true }
Expand All @@ -55,3 +54,6 @@ cursor-icon = { workspace = true }

# Rendering
raw-window-handle = { workspace = true }

[target.'cfg(any(target_os = "windows",target_os = "macos",target_os = "linux",target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
arboard = { workspace = true, optional = true }
2 changes: 1 addition & 1 deletion packages/blitz-shell/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn set_android_app(app: android_activity::AndroidApp) {
#[cfg_attr(docsrs, doc(cfg(target_os = "android")))]
/// Get the current [`AndroidApp`](android_activity::AndroidApp).
/// This will panic if the android activity has not been setup with [`set_android_app`].
pub fn current_android_app(app: android_activity::AndroidApp) -> AndroidApp {
pub fn current_android_app() -> android_activity::AndroidApp {
ANDROID_APP.get().unwrap().clone()
}

Expand Down

0 comments on commit d76e1b1

Please sign in to comment.