Skip to content

Android gradle9 pin barcode scanner and its deps - #10846

Open
accumulator wants to merge 5 commits into
spesmilo:masterfrom
accumulator:android_gradle9_pin_barcode_scanner
Open

Android gradle9 pin barcode scanner and its deps#10846
accumulator wants to merge 5 commits into
spesmilo:masterfrom
accumulator:android_gradle9_pin_barcode_scanner

Conversation

@accumulator

@accumulator accumulator commented Aug 12, 2026

Copy link
Copy Markdown
Member

This PR upgrades gradle used in P4A to 9.4.1 (AGP 9.1.0) and patches the barcode scanner components
to pin to the p4a provided toolchain, upgrades xzing-cpp to 3.1.0.0, CameraView to 1.10.2

Comment thread contrib/android/Dockerfile Outdated
@accumulator
accumulator force-pushed the android_gradle9_pin_barcode_scanner branch 2 times, most recently from 7d7c8f2 to 94c3bba Compare August 12, 2026 14:59
@accumulator
accumulator force-pushed the android_gradle9_pin_barcode_scanner branch 4 times, most recently from 657b898 to 53f0ddf Compare August 17, 2026 09:30
- pin toolchain to container provided toolchain for BarcodeScannerView, CameraView and zxing-cpp
- explicitly pin CMake in make_barcode_scanner.sh
- this requires patching the checked out sources
- upgrade zxing-cpp to 3.1.0.0
- upgrade CameraView to 1.10.2  (fixes potential NPE on visibiity change)
- call all gradle builds with android.builder.sdkDownload=false to force use of pinned SDK, fail otherwise.
- pin gradle itself using distributionSha256Sum

Note: since gradle now refuses to use other SDKs than the one provided by P4A, the patches need
(probably slight) maintenance when buildozer SDK is updated.
@accumulator
accumulator force-pushed the android_gradle9_pin_barcode_scanner branch from 53f0ddf to 8590849 Compare August 17, 2026 11:49
… and zxing-cpp, pinning

the dependency trees of these modules.

also adds metadata generation script make_verification_metadata.sh, which should be run
from within the build container.
@accumulator accumulator changed the title [dont-merge] Android gradle9 pin barcode scanner Android gradle9 pin barcode scanner and its deps Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants