Commit Graph

17 Commits

Author SHA1 Message Date
Doug Borg
5728b4f70f Force simulate mode when OSM OAuth secrets are missing
Preview/PR builds don't have access to GitHub Secrets, so the OAuth
client IDs are empty. Previously this caused a runtime crash from
keys.dart throwing on empty values. Now we detect missing secrets
and force simulate mode, which already fully supports fake auth
and uploads.

Also fixes a latent bug where forceLogin() would crash with
LateInitializationError in simulate mode since _helper is never
initialized when OAuth setup is skipped.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 11:25:17 -07:00
Doug Borg
0137fd66aa Add consistent User-Agent header to all HTTP clients
Create UserAgentClient (http.BaseClient wrapper) that injects a
User-Agent header into every request, reading app name and version
from VersionService and contact/homepage from dev_config.dart.

Format follows OSM tile usage policy:
  DeFlock/<version> (+https://deflock.org; contact: admin@stopflock.com)

Replaces 4 inconsistent hardcoded UA strings and adds UA to the 9
call sites that previously sent none.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 19:31:27 -07:00
Doug Borg
4fddd8e807 Replace print() with debugPrint() across codebase
Fixes avoid_print lint warnings by using debugPrint which respects
release mode and avoids console overflow on mobile platforms.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 14:23:07 -07:00
Doug Borg
c712aba724 Add flutter_lints and fix analyzer errors, dead code, and unused imports 2026-02-08 14:23:06 -07:00
stopflock
c4d9cd7986 Message notifications working 2025-12-02 14:04:04 -06:00
stopflock
175bc8831a new icons, remove upload dests 2025-09-26 14:31:50 -05:00
stopflock
fa16e3c299 phase 1 2025-08-30 23:17:08 -05:00
stopflock
05de16b2e2 cleanup round 2025-08-21 19:42:02 -05:00
stopflock
df5e26f78d breakup app_state 2025-08-21 18:39:09 -05:00
stopflock
2824aa72d9 fix for user-per-mode 2025-08-06 14:15:47 -05:00
stopflock
dca6cb7179 bunch of stuff, good luck. still need to fix user-by-mode thing 2025-08-06 12:24:32 -05:00
stopflock
640903d954 still cant believe this works 2025-08-05 22:56:47 -05:00
stopflock
2e1b504419 upload working 2025-07-19 19:49:17 -05:00
stopflock
956b9321a9 submission from queue still not working, but login issue fixed by creating osm application correctly (non-confidential) 2025-07-19 16:13:42 -05:00
stopflock
99d6ad8a44 submissions still not working, but oauth implemented and add camera sheet working. 2025-07-19 15:59:05 -05:00
stopflock
ef241688c3 fix missing icons 2025-07-19 14:51:45 -05:00
stopflock
56518bab28 pretty broken, icons missing, login not working. browser opens though and cams still appear on map 2025-07-19 14:11:02 -05:00