creator-tools 0.3.5

Mobile Game Framework
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::deps::AndroidSdk;
use crate::error::*;
use std::path::Path;

pub fn install_apk(sdk: &AndroidSdk, apk_path: &Path) -> Result<()> {
    let mut adb = sdk.platform_tool(bin!("adb"))?;
    adb.arg("install").arg("-r").arg(apk_path);
    adb.output_err(true)?;
    Ok(())
}