podium-driver 0.2.0

Async Rust library for driving Android devices in tests via Maestro's gRPC server
//! `podium` — async Rust API for driving a mobile device via Podium's test runner.
//!
//! # Quick start
//!
//! ```rust,no_run
//! use podium::{DeviceBuilder, Platform, Selector};
//!
//! # #[tokio::main]
//! # async fn main() -> Result<(), podium::PodiumError> {
//! let device = DeviceBuilder::default()
//!     .platform(Platform::Android { serial: None })
//!     .app_id("com.example.myapp")
//!     .build()
//!     .await?;
//!
//! device.launch_app("com.example.myapp", true).await?;
//! device.assert_visible(Selector::text("Welcome")).await?;
//! # Ok(())
//! # }
//! ```

pub mod error;
pub mod types;

mod adb;
mod device;
mod hierarchy;
mod ios;
mod transport;

#[cfg(feature = "mock")]
pub mod mock;

pub use device::{DeviceBuilder, Platform, PodiumDevice};
pub use error::PodiumError;
pub use types::{Direction, Selector};

#[cfg(feature = "mock")]
pub use mock::MockTransport;