feat(watch): a QR code of the viewer's address, set at build time #46
Loading…
Reference in a new issue
No description provided.
Delete branch "viewer-qr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The watch's Viewers screen (after the last marker) now shows a QR code of the viewer's address, so a phone's camera opens the viewer straight from the watch. Start or a tap there still opens the viewers' menu. The address is set at build time.
tools/generate-viewer-address.mjswriteswatch/source/ViewerAddress.mc: the origin, the relayLinkcalls (ViewerAddress.RELAY, wasLink.RELAY) and the QR code, forWRISTMARK_ORIGINor the defaulthttps://wristmark.apps.ciepiela.org. QR byqrcode1.5.4 (MIT, viewer dev dependency), in upper case for alphanumeric mode: version 2, 25×25, level M. Decoded with jsQR for the default and another origin.tools/build-watch.sh: withWRISTMARK_ORIGINset, writes the file for it and puts the committed one back after the build (tried with a stub compiler).tools/build-app-web.sh: the Android app's relay atWRISTMARK_ORIGINwhen set.release.yml: the repository variableWRISTMARK_ORIGIN(unset: the default) for the watch package and the APK; Node and the viewer's packages installed before the watch build.MarkerView: the marker's layout moved intolayout(dc, cells, quiet, line)(same results for the marker) and reused for the code, two modules of white around it; "Start: pair" below, "Viewer" above on round displays. On 416 px: 10 px modules, 250 px code.generate-viewer-address.mjs --check(the committed default).docs/watch.md(The Viewers screen, The viewer's address), user guide,docs/android.md,docs/ci.md.Device test: scan the Viewers screen with a phone's camera.
feat(watch): the Viewers screen shows the QR code of the viewer's addressto feat(watch): a QR code of the viewer's address, set at build time