From a881fa79b7ac4374fc71d7fa332bfc5efc095655 Mon Sep 17 00:00:00 2001 From: bilabila Date: Thu, 3 Oct 2024 22:45:57 +0800 Subject: [PATCH] support aar archive --- src/archives.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/archives.rs b/src/archives.rs index 3095a2a..431d39c 100644 --- a/src/archives.rs +++ b/src/archives.rs @@ -15,7 +15,7 @@ impl ArchiveFormat { pub(crate) fn parse_from_extension(resource: &str) -> Result { if resource.ends_with(".tar.gz") { Ok(Self::TarGz) - } else if resource.ends_with(".zip") { + } else if resource.ends_with(".zip") || resource.ends_with(".aar") { Ok(Self::Zip) } else { Err(Error::ExtractionError("unsupported archive format".into()))