crossbundle_tools/commands/android/native/aab/
gen_aab_from_modules.rs

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