271 Commits
Author SHA1 Message Date
efiten b9dd66bd7d Merge pull request #56 from efiten/release/v1.27.0
release v1.27.0
v1.27.0
2026-11-14 14:52:24 +01:00
efiten 484487a043 release v1.27.0 2026-11-14 14:52:15 +01:00
efiten ddf92806cb Merge pull request #50 from efiten/feat/longer-debug-log
debug log: 2000 lines, a Disconnect line, and an honest reconnect line
2026-11-14 10:55:53 +01:00
efiten e2f9f671b2 Merge pull request #55 from efiten/feat/stop-and-close
android: Stop & close button on Home
2026-11-14 10:55:30 +01:00
efiten 59169ac69e android: Stop & close button on Home
Back and Home keep capture running in the background, and Disconnect sits on
Settings, so testers had no easy way to end the app. The button (native app
only) asks first while connected, disconnects, then closes the app with
@capacitor/app exitApp. Queued receptions stay and upload on the next connect.
The capture notification now points to the button.
2026-11-14 10:22:12 +01:00
efiten 45c02c74ce debug log: a line when Disconnect is pressed
The same log ends on 'ignoring MQTT events from retired publisher #1'
and a header with 'uplink no-publisher', with nothing to say that the
user stopped the capture. disconnectAll only wrote to the status line.

No test: the line is in the click handler in src/app.js, which has no
unit tests.
2026-11-12 22:11:48 +01:00
efiten 40d4aaf4f7 debug log: the reconnect from a reception no longer claims frozen timers
An AirFlyer log of 2026-11-12 (v1.24.5) shows 'timers frozen (screen
off?): reopening the CoreScope link from a reception' at 21:54:30 with
an RF sample in the same second, so the timers were running. catchUp
writes the line on every reconnect it starts, frozen or not.
2026-11-12 22:11:48 +01:00
efiten e46d4af068 Merge master (v1.26.0) into feat/longer-debug-log 2026-11-12 18:54:26 +01:00
efiten 9c2b50a166 Merge pull request #54 from efiten/fix/update-note-above-tabs
android: the update note sits above the tabs, on every screen
2026-11-12 18:37:32 +01:00
efiten 4ca9c08a56 android: the update note sits above the tabs, on every screen
On a phone the update check found 12600, but the note stayed unseen: it was on Home and the
app opens on Settings until connected. It is now fixed above the tab bar.
2026-11-12 18:22:13 +01:00
efiten bfbd9d2b4e Merge pull request #53 from efiten/release/v1.26.0
release v1.26.0
v1.26.0
2026-11-12 16:57:34 +01:00
efiten 6b219d3908 release v1.26.0 2026-11-12 16:57:20 +01:00
efiten 7bcd48d1fd Merge pull request #52 from efiten/docs/deployment-help
android: the deployment card says step by step what to do
2026-11-12 16:56:09 +01:00
efiten e65f9eca44 Merge pull request #51 from efiten/feat/rf-by-distance
rf sampler: a sample every 100 m while moving, at most 15 s apart
2026-11-12 16:56:06 +01:00
efiten fb34bd3725 android: the deployment card says step by step what to do
Three testers asked what to enter under Settings > Deployment. Until a deployment is chosen
the card now stands out (blue, title "First step: choose where your data goes") and lists
the steps: open your CoreScope on another screen, open Coverage, scan its QR code or type
the address under it. Once chosen it shrinks to one line naming where the app uploads.
2026-11-12 16:54:49 +01:00
efiten 436f859fb1 rf sampler: a sample every 100 m while moving, at most 15 s apart
A tester saw gaps between the RF hexes along a road. At 90 km/h the fixed 15 s cadence left
375 m between samples, more than one CoreScope hex at zoom 13 (about 340 m). The timer now
checks every 2 s and takes a sample once the phone moved 100 m since the last one, or 15 s
passed. Parked stays at 5 minutes. An RF sample is a Bluetooth stats query, no airtime.
2026-11-12 12:50:58 +01:00
efiten 48242e940f debug log: keep 2000 lines instead of 200
A 30 minute drive on 2026-11-12 (v1.25.0, full RF logging on) wrote about
19 lines a minute, so the exported log held only the last 10.5 minutes
(08:36:30 to 08:47:03) and two thirds of the drive had rolled out.
At that rate 2000 lines hold about 105 minutes. The same log was 14 kB
for 200 lines, so a full export is about 140 kB.

Not measured: memory or scroll cost of 2000 lines in the log view on a
phone. The view is hidden until 'Show debug log' is pressed.
2026-11-12 08:55:39 +01:00
efiten 4d388e0eb8 Merge pull request #49 from efiten/fix/qr-same-deployment
android: scanning the deployment already in use no longer restarts the app
2026-11-11 22:19:12 +01:00
efiten f83db5bd92 Merge pull request #48 from efiten/feat/r8
android: turn on R8 and send its mapping file to Play
2026-11-11 22:17:26 +01:00
efiten 734c0d0a8d android: scanning the deployment already in use no longer restarts the app
Choosing a deployment saves it and reloads the page, also when it is the one in use. On a
phone the QR scan of the same deployment dropped the companion link and cleared the debug
log. The same deployment now changes nothing; a different one asks first while connected.
2026-11-11 22:14:35 +01:00
efiten 64de7f1da4 android: log the update check's result on every start
The first R8 test run on a phone showed no update line: a check that finds nothing logged
nothing, so a check that ran was indistinguishable from one that never returned.
2026-11-11 22:07:11 +01:00
efiten eab6eb5fc1 android: turn on R8 and send its mapping file to Play
Play Console flagged the bundle: DEX optimisation low, obfuscation 1%, no deobfuscation
file, no native debug symbols. Release builds now run R8 with resource shrinking and put
the native symbol table in the bundle; play-upload.mjs --mapping uploads mapping.txt.
Release APK 6.45 MB -> 3.35 MB. Capacitor's consumer rules keep every plugin class: the
seven plugins, MainActivity and AlwaysVisibleWebView keep their names in mapping.txt.
2026-11-11 21:58:27 +01:00
efiten d1227ead81 Merge pull request #46 from efiten/release/v1.25.0
release: v1.25.0
v1.25.0
2026-11-11 21:38:50 +01:00
efiten 28f25b01f9 release: v1.25.0 notes include the update note (#47) 2026-11-11 21:38:28 +01:00
efiten 45bf0ed486 Merge remote-tracking branch 'origin/master' into release/v1.25.0 2026-11-11 21:38:12 +01:00
efiten 68e92da4f2 Merge pull request #47 from efiten/feat/update-notice
android: tell on Home when a newer version exists
2026-11-11 21:38:09 +01:00
efiten 3aa6e1ec2c android: tell on Home when a newer version exists
Google Play updates silently and late, and a GitHub APK never updates by itself. At start
the app asks Play's in-app update API (@capawesome/capacitor-app-update 8.1.1); for a Play
install Play decides, and a tap starts the update in Play. Any other install compares its
version with version.json of its deployment, now written by every web build.
2026-11-11 21:37:10 +01:00
efiten 088ad29c35 release: v1.25.0 2026-11-11 21:31:14 +01:00
efiten 45c9c3e23c Merge pull request #45 from efiten/fix/web-stale-fix
web: never stamp a reception with a fix from before the page went to the background
2026-11-11 21:29:53 +01:00
efiten e3d7d96b54 web: never stamp a reception with a fix from before the page went to the background
A hidden page gets no GPS updates while Web Bluetooth can still deliver packets, so a
reception was stamped with the last position from before the page was hidden. Fixes now
carry their receive time; a hidden page only uses a fix up to 30 s old (receptions, RF
samples, pings). After a minute or more in the background while connected, Home says how
long and how many receptions were saved or not saved.
2026-11-11 21:27:19 +01:00
efiten 891c536e3b Merge pull request #44 from efiten/fix/ask-refused
regions: name the companion's refusal of an ask instead of 'no send-ack'
2026-11-11 21:25:05 +01:00
efiten dd512261a4 regions: name the companion's refusal of an ask instead of 'no send-ack'
A companion up to firmware v1.16 answers CMD_SEND_ANON_REQ for a repeater that is not a
contact with ERR_CODE_TABLE_FULL when its contact list is full
(BaseChatMesh::allocateContactSlot); v1.17 reserves 8 slots for these asks. The app only
listened for RESP_CODE_SENT, so the refusal showed as a 4-second 'no send-ack'. The ask
now resolves on that error, logs the cause, and the header counts the refusals.
2026-11-11 21:22:42 +01:00
efiten 7c35733bdb Merge pull request #43 from efiten/docs/batched-releases
AGENTS: batch releases instead of one per fix
2026-11-11 21:19:31 +01:00
efiten abba0beb0e AGENTS: fix PRs say whether they need a release now 2026-11-11 21:19:04 +01:00
efiten a378d773f1 AGENTS: batch releases instead of one per fix
Fix PRs land on master without version, release notes, SW cache bump or tag. A release PR
collects them and is then tagged, deployed, built and uploaded to Play as a draft. Each
Play upload is reviewed by Google and updates every tester.
2026-11-11 21:18:11 +01:00
efiten aaa845728a Merge pull request #42 from efiten/fix/rf-resume-cadence
rf: re-arm the sampler at the moving cadence when moving again (v1.24.5)
v1.24.5
2026-11-11 21:10:23 +01:00
efiten e7376f0990 rf: re-arm the sampler at the moving cadence when moving again
While parked the next RF sample is armed 5 minutes out. On 'moving again' that timer kept
running, so the first minutes of a drive had no samples (4 min 19 s in a 2026-11-11 log,
20:20:28 to 20:24:47). setPaused(false) now re-arms it at 15 s when it was due later.

Release v1.24.5, SW cache v65.
2026-11-11 20:43:07 +01:00
efiten 406802f8a2 Merge pull request #41 from efiten/fix/webview-stays-visible
android: keep the WebView running with the screen off (v1.24.4)
v1.24.4
2026-11-11 20:29:20 +01:00
efiten be7cb06372 release: v1.24.4
Version bump and release notes for f280dec (Android WebView stays running
with the screen off).

Tested on one OnePlus, stationary, screen off about 4 minutes, on USB and on
battery: uploads continued, the broker link stayed up, no 'app hidden' line.
Not tested: region asks and pings with the screen off, a drive, other phones,
battery use.
2026-11-11 20:25:47 +01:00
efiten f280dec686 android: keep the WebView running with the screen off
Three v1.24.3 field logs of 2026-11-11 (three phones) show the same thing:
about 60 s after "app hidden" every upload, RF sample, region ask and uplink
ping stops until the screen is back on, for 7 to 25 minutes, while receptions
and discover go on. The catch-up of 149e39b keeps monitorTick alive but not
the jobs that wait on a timer, on IndexedDB or on the broker.

What changes:
- AlwaysVisibleWebView reports its window as visible at all times, so
  Chromium never treats the page as hidden. An app copy of
  capacitor_bridge_layout_main.xml puts it in place of CapacitorWebView.
- MainActivity sends appHidden / appVisible on onStop / onStart, because
  visibilitychange no longer fires. app.js logs both, wakelock.js re-acquires
  the screen lock on appVisible and leaves one that is still held alone.
- Service worker cache v64.

Verified: npm test, 485 of 485 pass. assembleDebug builds, and aapt2 shows
eu.on8ar.coredriverx.AlwaysVisibleWebView in the APK's layout.

Not verified: that this stops the freeze. No phone has run this build yet.
Battery use with the screen off is not measured. No version bump and no
release notes: those follow once a screen-off drive confirms it.
The web app (Chrome, Bluefy) is not changed by this and still freezes.
2026-11-11 20:09:21 +01:00
efiten a802ff72b1 Merge pull request #40 from efiten/feat/play-upload
scripts: upload a signed bundle to a Play test track as a draft
2026-11-11 20:02:23 +01:00
efiten 158120ec06 scripts: upload a signed bundle to a Play test track as a draft
Uses a service account key outside the repo and node:crypto for the OAuth JWT, so no new
dependency. The draft keeps the track's live release (tracks.update replaces the whole
list) and replaces an older draft. Release notes are the summary line of
docs/releases/vX.Y.Z.md, checked against Play's 500-character limit. An edit that is not
committed is deleted so it cannot block the next run.

Verified against Play: 'tracks' lists alpha with 12403 (1.24.3) completed. Not yet
verified: an actual upload, which needs a new versionCode.
2026-11-11 19:55:55 +01:00
efiten 31cb42641e Merge pull request #39 from efiten/feat/battery-tip
release: v1.24.3, one-time battery tip in the Android app
v1.24.3
2026-11-11 14:26:38 +01:00
efiten 86de4f69ad android: one-time battery tip before the first Connect
A OnePlus closed the app during a test walk (exit reason o-kill, importance
125, so with the foreground service running). Without an extra permission
the app cannot prevent that, so before the first Connect in the Android app
a popup says to set the battery setting to Unrestricted, linking
dontkillmyapp.com. Shown once (localStorage flag); storage that throws skips
it rather than blocking Connect. Same text in the user guide.

Release v1.24.3, SW cache coredrive-rx-v63.
2026-11-11 14:02:18 +01:00
efiten a9ef9780ee Merge pull request #38 from efiten/fix/notification-permission
release: v1.24.2, ask for notification permission before capture
v1.24.2
2026-11-11 13:53:51 +01:00
efiten c761c65709 android: ask for notification permission before capture starts
On Android 13+ the foreground service notification stays hidden until the
user allows notifications, and background-geolocation does not ask.
NativeGps.start now calls LocalNotifications.requestPermissions() before
addWatcher; a refusal or error does not stop capture.

Release v1.24.2, SW cache coredrive-rx-v62.
2026-11-11 12:43:42 +01:00
efiten 90969d6f14 Merge pull request #37 from efiten/release/v1.24.1
release: v1.24.1, About card with privacy policy link
v1.24.1
2026-11-11 12:12:50 +01:00
efiten bb182e741c release: v1.24.1, About card with privacy policy link
Google Play requires a link to the privacy policy inside the app. Settings
gets an About card with the privacy policy, user guide and source code; in
the Android app the links open in the phone's browser (Bridge.launchIntent).
SW cache coredrive-rx-v61.
2026-11-11 11:59:51 +01:00
efiten 51a3494d0d Merge pull request #36 from efiten/feat/release-notes-collapsed
release notes: each body holds only its own release
2026-11-11 11:32:21 +01:00
efiten a73b615a55 release notes: each body holds only its own release
The folded history still made every body list all earlier releases, which
the GitHub releases list already shows. The body is now the tag's own
docs/releases file plus one link to the releases list. The job still fails
on a tag without a notes file.
2026-11-11 11:27:12 +01:00