1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::{error::*, types::*};
use std::path::{Path, PathBuf};
/// Allows to generate aab from archive with files extracted from apk or set of archives
/// to specified storage
pub fn gen_aab_from_modules(
package_name: &str,
zip_modules: &[PathBuf],
build_dir: &Path,
) -> Result<PathBuf> {
let aab = build_dir.join(format!("{}_unsigned.aab", package_name));
BuildBundle::new(zip_modules, &aab).run()?;
Ok(aab)
}