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