summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorcirakg <cirakg@cirakg.xyz>2026-10-18 23:44:18 +0200
committercirakg <cirakg@cirakg.xyz>2026-10-18 23:44:18 +0200
commitac60fb060414261935ac5e158b26b34e211e1e06 (patch)
treea8f97e1c4b0bf8f1b433d3e8f33a5d30994e7c58 /Makefile
parent93aa7e3aa291f3328cf34a5a2f86172f41d0affd (diff)
feat(spike): add the M1 settings spike app and make targets
A separate throwaway app (own app ID, no permissions) that shows what the Garmin Connect app delivers per settings field and writes values back, to measure the undocumented settings limits on the real phone and watch. Includes length-marked test strings, `make spike` / `make spike-sim`, `make vectors`, and step-by-step instructions in docs/SETTINGS_SPIKE.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d53b836..5ffb028 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ DOCS_RUN = $(DOCKER) run --rm --init --label project=$(PROJECT) \
--read-only --tmpfs /tmp:rw,exec,nosuid,size=1g --shm-size 512m \
-v "$(ROOT)":/work -w /work --network none $(DOCS_IMAGE)
-.PHONY: help image docs-image sdk key build test test-tools sim screenshots screenshots-approve perf memtest icons \
+.PHONY: help image docs-image sdk key build test test-tools sim screenshots screenshots-approve perf memtest icons vectors spike spike-sim \
lint package docs ci shell clean nuke lock products \
check-docker dirs need-image need-docs-image
@@ -130,6 +130,15 @@ package: dirs need-image ## Signed .iq for the Store beta + per-device release .
products: dirs need-image ## Check manifest products against the downloaded device files
$(DEV_OFFLINE) python3 tools/gen_products.py --check
+vectors: dirs need-image ## Regenerate test/data/Vectors.mc (cross-checked RFC/NIST test vectors)
+ $(DEV_OFFLINE) python3 tools/gen_vectors.py
+
+spike: dirs need-image ## Build the M1 settings spike (debug .prg + beta .iq) into build/spike
+ $(DEV_OFFLINE) build-spike.sh build
+
+spike-sim: dirs need-image ## Run the settings spike headless on DEVICE and screenshot it
+ $(DEV_OFFLINE) build-spike.sh sim $(DEVICE)
+
icons: dirs need-image ## Regenerate the launcher icons for every product (after changing manifest.xml)
$(DEV_OFFLINE) sh -c 'python3 tools/make_icon.py --all --devices /home/dev/.Garmin/ConnectIQ/Devices && \
python3 tools/make_icon.py --size 60 --out resources/drawables/launcher_icon.png'