1
0

android: shasum pin barcode scanner

pins the barcode scanner aar used in the android build and its 2
dependencies to a sha256 hash using a script `fetch_barcode_scanner.sh`
which is called in the process of building the apk by `make_apk.sh`.
It fetches the 3 aar files if not already existing, puts them in
`/contrib/android/aars` and verifies their shasum against the hardcoded
hashes in `fetch_barcode_scanner.sh`.
This commit is contained in:
f321x
2025-06-25 13:50:48 +02:00
parent 0a05674f2f
commit 5ae2deb704
4 changed files with 63 additions and 5 deletions

View File

@@ -27,6 +27,10 @@ info "preparing electrum-locale."
rm -r "$PROJECT_ROOT/electrum/locale/locale"/*/electrum.po
)
# fetch barcode scanner aars
info "fetching barcode scanner aars."
"$CONTRIB_ANDROID"/fetch_barcode_scanner.sh || fail "fetch_barcode_scanner.sh failed"
pushd "$CONTRIB_ANDROID"
info "apk building phase starts."