1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
mod jarsigner;
mod keytool;
pub use jarsigner::*;
pub use keytool::*;
use std::path::Path;
/// Tools that using to create keystore and sign JAR files with keystore
#[derive(Clone, Copy)]
pub struct JavaTools;
impl JavaTools {
/// Invocates jarsigner to sign JAR file. You can use it to sign APK and AAB files too
pub fn jarsigner(self, jar_file: &Path, alias: &str) -> JarSigner {
JarSigner::new(jar_file, alias)
}
/// Invocates keytool options to create and manage keystore
pub fn keytool(self) -> Keytool {
Keytool::new()
}
}