Skip to content

Commit

Permalink
add support for the new v7 and v8 android extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Dec 25, 2023
1 parent d119a54 commit cd91412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ fn create_package(
if name.to_string_lossy() == mod_file_info.id
&& matches!(
ext.to_string_lossy().as_ref(),
"ios.dylib" | "dylib" | "dll" | "lib" | "so"
"ios.dylib" | "dylib" | "dll" | "lib" | "so" | "v7.so" | "v8.so"
)
{
let binary = name.to_string_lossy().to_string() + "." + ext.to_string_lossy().as_ref();
Expand All @@ -349,7 +349,7 @@ fn create_package(
// Copy other binaries
for binary in &binaries {
let mut binary_name = binary.file_name().unwrap().to_str().unwrap().to_string();
if let Some(ext) = [".ios.dylib", ".dylib", ".dll", ".lib", ".so"].iter().find(|x| binary_name.contains(**x)) {
if let Some(ext) = [".ios.dylib", ".dylib", ".dll", ".lib", ".v7.so", ".v8.so", ".so"].iter().find(|x| binary_name.ends_with(**x)) {
binary_name = mod_file_info.id.to_string() + ext;
}

Expand Down

0 comments on commit cd91412

Please sign in to comment.