Skip to content

Commit 7d4e3ab

Browse files
committed
masonry_android: Use masonry_core and its re-exported dependencies
1 parent dba500b commit 7d4e3ab

File tree

4 files changed

+14
-18
lines changed

4 files changed

+14
-18
lines changed

Cargo.lock

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

masonry/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ version = "0.1.0"
44
edition = "2024"
55

66
[dependencies]
7-
accesskit = "0.21.0"
87
accesskit_android = "0.4.0"
98
android-view = { path = ".." }
10-
masonry = { git = "https://github.com/linebender/xilem" }
9+
masonry_core = { git = "https://github.com/linebender/xilem" }
1110
pollster = "0.4.0"
1211
tracing = "0.1.40"
13-
vello = "0.5.0"

masonry/src/app_driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2025 the Xilem Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
use masonry::{
4+
use masonry_core::{
55
app::RenderRoot,
66
core::{ErasedAction, WidgetId},
77
};

masonry/src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright 2024 the Xilem Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4-
use accesskit::{ActionHandler, ActionRequest, ActivationHandler, TreeUpdate};
54
use android_view::{
65
jni::{
76
JNIEnv,
@@ -10,27 +9,28 @@ use android_view::{
109
ndk::{event::Keycode, native_window::NativeWindow},
1110
*,
1211
};
13-
use masonry::{
12+
use masonry_core::{
13+
accesskit::{ActionHandler, ActionRequest, ActivationHandler, TreeUpdate},
1414
app::{RenderRoot, RenderRootOptions, RenderRootSignal, WindowSizePolicy},
1515
core::{DefaultProperties, Handled, NewWidget, TextEvent, Widget, WindowEvent},
1616
dpi::PhysicalSize,
1717
peniko::Color,
1818
util::Instant,
19+
vello::{
20+
self, Renderer, RendererOptions, Scene,
21+
kurbo::Affine,
22+
util::{RenderContext, RenderSurface},
23+
wgpu::{
24+
self, PresentMode,
25+
rwh::{DisplayHandle, HandleError, HasDisplayHandle, HasWindowHandle, WindowHandle},
26+
},
27+
},
1928
};
2029
use std::sync::{
2130
Arc,
2231
mpsc::{self, Receiver},
2332
};
2433
use tracing::{debug, info, info_span};
25-
use vello::{
26-
Renderer, RendererOptions, Scene,
27-
kurbo::Affine,
28-
util::{RenderContext, RenderSurface},
29-
wgpu::{
30-
self, PresentMode,
31-
rwh::{DisplayHandle, HandleError, HasDisplayHandle, HasWindowHandle, WindowHandle},
32-
},
33-
};
3434

3535
mod app_driver;
3636
pub use app_driver::*;

0 commit comments

Comments
 (0)