feat(android): add Bluetooth and USB permissions, implement JavaScript interfaces for Bluetooth and USB management, and enhance Android wheel verification in CI workflow

This commit is contained in:
Ivan
2026-04-19 11:36:40 -05:00
parent 6e59548eb9
commit a6764d3d38
7 changed files with 282 additions and 35 deletions
+27
View File
@@ -117,6 +117,33 @@ jobs:
- name: Build Android wheels
run: bash scripts/build-android-wheels-local.sh --python-minor "${PYTHON_VERSION}" --chaquopy-ref "${CHAQUOPY_REF}" --abis arm64-v8a,x86_64,armeabi-v7a
- name: Verify required Android wheels are present
run: |
set -euo pipefail
required=(
"miniaudio-1.70-*-cp311-cp311-android_24_arm64_v8a.whl"
"miniaudio-1.70-*-cp311-cp311-android_24_x86_64.whl"
"miniaudio-1.70-*-cp311-cp311-android_24_armeabi_v7a.whl"
"pycodec2-*-cp311-cp311-android_24_arm64_v8a.whl"
"pycodec2-*-cp311-cp311-android_24_x86_64.whl"
"pycodec2-*-cp311-cp311-android_24_armeabi_v7a.whl"
"lxst-*-py3-none-any.whl"
)
missing=0
for pattern in "${required[@]}"; do
if ! ls android/vendor/${pattern} >/dev/null 2>&1; then
echo "::error::Missing wheel matching android/vendor/${pattern}"
missing=1
fi
done
if [[ "${missing}" -ne 0 ]]; then
echo "Built wheels:"
ls -la android/vendor/ || true
exit 1
fi
echo "All required Android wheels present:"
ls -1 android/vendor/
- name: Run unit tests
if: ${{ github.event_name != 'workflow_dispatch' || inputs.run_tests }}
working-directory: android