# -*- coding: utf-8 -*-
import os
import zipfile
from pathlib import Path

split = Path(__file__).resolve().parent.parent / "extracted" / "native" / "split_arm64.apk"
out = split.parent
with zipfile.ZipFile(str(split)) as zf:
    for name in zf.namelist():
        if "libshpssdk" in name:
            dest = out / Path(name).name
            dest.write_bytes(zf.read(name))
            print(dest, dest.stat().st_size)
