mirror of
https://github.com/efiten/coredrive-rx.git
synced 2026-11-24 05:18:00 +00:00
The Deployment card in Settings gets a "Scan QR code" button. It uses BarcodeScanner.scan() of @capacitor-mlkit/barcode-scanning 8.2.1 (exact; 8.2.2 was 10 days old), which runs the Google code scanner in Play services: its own camera screen, no camera permission, the module downloaded once on first use with progress shown in the card. A scanned code must spell out https:// itself and then goes through the same config.json check as a typed URL. A cancelled scan is silent; a QR code that is not a deployment URL says so. The QR code itself comes from CoreScope's Coverage page (clientRxCoverage.appUrl), which is a separate change in the CoreScope repository. android/app/build.gradle leaves libbarhopper_v3.so out of the APK: that is the bundled ML Kit detector used only by startScan and readBarcodesFromImage, which the app never calls. Debug APK 29.5 MB with it, 9.2 MB without (4.9 MB before the plugin). - src/qrscan.js + test/qrscan.test.mjs: 8 tests (468 total pass) - web build checked headless: appver filled, Deployment card hidden Not tested on a device: the scan, the module download and the size cut are unverified on hardware.