Skip to content

Commit efe16af

Browse files
committed
fix: add python typing info, small fix
1 parent 91ff3df commit efe16af

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

core/src/apk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ impl Apk {
718718
let mut native_codes_set = HashSet::new();
719719

720720
for filename in self.zip.namelist() {
721-
if let Some(rest) = filename.strip_prefix("/lib")
721+
if let Some(rest) = filename.strip_prefix("lib/")
722722
&& let Some((abi, lib)) = rest.split_once('/')
723723
&& lib.ends_with(".so")
724724
&& !abi.is_empty()

python/apk_info.pyi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,17 @@ class APK:
838838
"""
839839
...
840840

841+
def get_native_codes(self) -> list[str]:
842+
"""
843+
Retrieves all available native platforms: `arm64-v8a`, `armeabi-v7a`, `x86`, `x86_64`
844+
845+
Returns
846+
-------
847+
list[str]
848+
A sorted list of supported platforms
849+
"""
850+
...
851+
841852
@dataclass(frozen=True)
842853
class CertificateInfo:
843854
serial_number: str

0 commit comments

Comments
 (0)