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

1use crate::{commands::android::*, error::*};
2use std::path::{Path, PathBuf};
3
4/// Allows to generate archive from files extracted from APK
5pub fn gen_zip_modules(
6    build_dir: &Path,
7    package_name: &str,
8    extracted_apk_files: &Path,
9) -> Result<PathBuf> {
10    let zip_path = build_dir.join(format!("{}_module.zip", package_name));
11    zip_dirs_to_write(extracted_apk_files)?;
12    zip_write(extracted_apk_files, &zip_path)?;
13    Ok(zip_path)
14}