pub struct AndroidSdk { /* private fields */ }Expand description
Helper structure that contains information about the Android SDK path and returns paths to the tools.
Implementations§
Source§impl AndroidSdk
impl AndroidSdk
Sourcepub fn build_deps_path(&self) -> &Path
pub fn build_deps_path(&self) -> &Path
Build path deps
Sourcepub fn build_deps_version(&self) -> &str
pub fn build_deps_version(&self) -> &str
Build version deps
Sourcepub fn platforms_path(&self) -> &Path
pub fn platforms_path(&self) -> &Path
Platforms path
Sourcepub fn build_tool(
&self,
tool: &str,
current_dir: Option<&Path>,
) -> Result<ProcessCommand>
pub fn build_tool( &self, tool: &str, current_dir: Option<&Path>, ) -> Result<ProcessCommand>
Provides path to SDK tool
Sourcepub fn platform_tool(&self, tool: &str) -> Result<ProcessCommand>
pub fn platform_tool(&self, tool: &str) -> Result<ProcessCommand>
Platforms tools
Sourcepub fn default_platform(&self) -> u32
pub fn default_platform(&self) -> u32
Default platforms
Sourcepub fn platform_dir(&self, platform: u32) -> Result<PathBuf>
pub fn platform_dir(&self, platform: u32) -> Result<PathBuf>
Platforms directory path
Sourcepub fn android_jar(&self, platform: u32) -> Result<PathBuf>
pub fn android_jar(&self, platform: u32) -> Result<PathBuf>
Returns android_jar path
Trait Implementations§
Source§impl Debug for AndroidSdk
impl Debug for AndroidSdk
Source§impl Default for AndroidSdk
impl Default for AndroidSdk
Source§fn default() -> AndroidSdk
fn default() -> AndroidSdk
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AndroidSdk
impl RefUnwindSafe for AndroidSdk
impl Send for AndroidSdk
impl Sync for AndroidSdk
impl Unpin for AndroidSdk
impl UnwindSafe for AndroidSdk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more