Commit Graph
5 Commits
Author SHA1 Message Date
efiten c12b473228 build(android): release signing and version from package.json
versionName now comes from package.json and versionCode is
major*10000 + minor*100 + patch, so the APK and the web app carry one
version (1.23.0 -> 12300). A release build is signed when the gitignored
android/keystore.properties names a keystore; without it the release APK
stays unsigned. The keystore itself lives outside the repository.
assembleRelease checked with apksigner (CN=CoreDrive RX) and aapt2.
2026-11-10 22:42:28 +01:00
efiten 6a9caecf99 build(android): launcher icon and splash from the web app icon
The APK carried Capacitor's default icon and splash. scripts/android-icons.ps1
draws them from public/icon-512.png: the adaptive icon foreground (source at
86% of the 108 dp canvas, so the ring stays inside the 66 dp safe zone) on
the icon's own background #0F1115, the legacy square and round icons, and
the splash images with the icon centred. The Android 12+ splash background
uses the same colour. Installed on a OnePlus 15; how each launcher masks
the icon was not checked beyond that phone.
2026-11-10 22:34:48 +01:00
efiten 3963704592 fix(native): share the debug log through the Android share sheet
In the Android app the Share button did nothing: the WebView has no
navigator.share, and the download-link fallback is ignored there. The
native app now writes the log to its cache (@capacitor/filesystem 8.1.5)
and opens the share sheet with it as a .txt attachment (@capacitor/share
8.0.3). The web paths are unchanged. pickShareMethod picks 'native' first;
test/sharelog.test.mjs covers it.
2026-11-10 22:20:03 +01:00
efiten 26e2b096ba feat(native): scan the deployment URL from a QR code
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.
2026-11-10 09:38:25 +01:00
efitenandClaude Opus 5.5 9c30eef3ac build(android): Capacitor Android project and build notes
npx cap add android with appId eu.on8ar.coredriverx and
android.useLegacyBridge (the background-geolocation README: without it
updates stop after 5 minutes in the background). Manifest adds location,
POST_NOTIFICATIONS and Bluetooth permissions, BLUETOOTH_SCAN declared
neverForLocation. Copied web assets (including config.json) stay out of
git via the generated android/.gitignore. `npm run android:sync` builds
and copies dist/ into the project; README has the steps.

Not built: this machine has JDK 8 and no Android SDK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 23:46:22 +01:00