[go: up one dir, main page]

cargo-apk 0.1.6

Cargo subcommand that allows you to build Android packages
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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")      // TODO: let user choose
        .arg(&build_result.apk_path)
        .execute();
}