use std::path::Path;
use build;
use config::Config;
use termcmd::TermCmd;
pub fn install(manifest_path: &Path, config: &Config) {
let build_result = build::build(manifest_path, config);
let adb = config.sdk_path.join("platform-tools/adb");
TermCmd::new("Installing apk to the device", &adb)
.arg("install")
.arg("-r") .arg(&build_result.apk_path)
.execute();
}