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