1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! # droidrun-core
//!
//! Android device automation core library.
//!
//! Provides device drivers, Portal APK management, and UI state processing
//! for controlling Android devices programmatically.
//!
//! ## Usage
//!
//! ```no_run
//! use droidrun_core::driver::android::AndroidDriver;
//! use droidrun_core::driver::DeviceDriver;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let mut driver = AndroidDriver::new(None, true);
//! driver.connect().await?;
//!
//! // Take screenshot
//! let png = driver.screenshot(true).await?;
//! std::fs::write("screen.png", &png)?;
//!
//! // Tap
//! driver.tap(540, 1200).await?;
//!
//! // Type text
//! driver.input_text("hello", false).await?;
//!
//! Ok(())
//! }
//! ```
// Re-exports for convenience
pub use AndroidDriver;
pub use RecordingDriver;
pub use ;
pub use ;
pub use PortalClient;
pub use PortalManager;
pub use ;
pub use ;
pub use AndroidStateProvider;
pub use ;