Commit Graph

649 Commits

Author SHA1 Message Date
stopflock b00e44e3bb Merge pull request #163 from reb1995/keep-screen-awake-while-using-app
Keep screen awake while using app. Update translations for new settings.
2026-05-12 15:18:32 -05:00
Ryan Brown f438c21166 Add translations. Translated by Google Translate. 2026-05-09 23:35:19 +00:00
Ryan Brown e0b2a6a19c Update and confirm english localizations. 2026-05-09 22:34:04 +00:00
Ryan Brown 329974a8f0 Feature: Keep screen on while using app. Initial working. 2026-05-09 22:02:36 +00:00
stopflock 5b55171080 Merge pull request #155 from reb1995/fix-android-gps-location-accuracy-requirement
Update gps_controller to not require location accuracy in android.
2026-05-04 21:38:32 -05:00
reb1995 2ba0667a76 Update gps_controller.dart
Remove extra import that isn't required. Now passes flutter analyze.
2026-04-12 21:07:26 -04:00
reb1995 8a3ece630c Merge branch 'FoggedLens:main' into fix-android-gps-location-accuracy-requirement 2026-04-12 19:39:37 -04:00
stopflock c2b0f6f9fd Merge pull request #156 from reb1995/Update-OAuth2-with-Application-Permissions
Update DEVELOPER.md to include OSM OAuth2 Application Permissions
2026-04-12 16:25:48 -05:00
reb1995 273bccc5eb Update DEVELOPER.md
Updates DEVELOPER.md instructions with the OSM OAuth2 Application Permissions and Redirect URIs. Adds needed clarity for developers to make sure the app has the required permissions if compiling on their own.
2026-04-09 00:33:39 -04:00
reb1995 d7be022a11 Update gps_controller to not require location accuracy in android.
Adds basic target matching. If Android Do... Else use old code.
2026-04-06 13:09:41 -04:00
stopflock 157e72011f devibe changelog v2.10.1-release 2026-03-23 13:15:26 -05:00
stopflock bd71f88452 operator profiles - import, reorderable 2026-03-23 12:58:50 -05:00
stopflock 6e2fa3a04c typo 2026-03-23 11:45:13 -05:00
stopflock 843d377b87 Nuclear reset button now appears when kEnableDevelopmentModes is true as well 2026-03-15 14:31:39 -05:00
stopflock 3857023d43 Fix deprecation warning v2.10.0-release 2026-03-14 18:11:43 -05:00
stopflock ddf7f543ff Button to trigger nuke reset in dev mode 2026-03-14 18:04:57 -05:00
stopflock 9f72ec9a76 Fix lint warnings, clean up debug logging 2026-03-14 17:31:01 -05:00
stopflock 16e34b614f Rework profile FOVs - 360 checkbox 2026-03-14 17:18:33 -05:00
stopflock 2d00d7a8fb bump ver v2.9.2-beta v2.9.2-release 2026-03-12 22:30:16 -05:00
stopflock f85db3ca11 add "report osm map issue" link to info/about page 2026-03-12 22:19:21 -05:00
stopflock 447f358727 Limit max files open to prevent OS error for too many files open related to tile storage 2026-03-12 19:58:07 -05:00
stopflock 08b395214b Move "about osm" to about page, add option to clear tile caches, option to add reason when deleting, min zoom 16 for edits/submissions, 300km nav distance warning 2026-03-12 18:59:48 -05:00
stopflock 256dd1a43c Merge pull request #145 from dougborg/feat/resilience-policy
Add endpoint migration with centralized retry/fallback policy
v2.9.1-beta
2026-03-12 11:42:28 -05:00
Doug Borg ca7192d3ec Add changelog entry for retry/fallback feature
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 23:20:08 -06:00
Doug Borg 2833906c68 Add centralized retry/fallback policy with hard-coded endpoints
Extract duplicated retry logic from OverpassService and RoutingService
into a shared resilience framework in service_policy.dart:

- ResiliencePolicy: configurable retries, backoff, and HTTP timeout
- executeWithFallback: retry loop with primary→fallback endpoint chain
- ErrorDisposition enum: abort / fallback / retry classification
- ServicePolicy + ServicePolicyResolver: per-service compliance rules
  (rate limits, caching, concurrency) for OSMF and third-party services
- ServiceRateLimiter: async semaphore-based concurrency and rate control

OverpassService now hits overpass.deflock.org first, falls back to
overpass-api.de. RoutingService hits api.dontgetflocked.com first,
falls back to alprwatch.org. Both use per-service error classifiers
to determine retry vs fallback vs abort behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 23:13:52 -06:00
stopflock 4d1032e56d ver, changelog 2026-03-11 23:22:17 -05:00
stopflock 834861bcaf Merge pull request #148 from dougborg/fix/node-render-prioritization
Prioritize closest nodes to viewport center when render limit is active
2026-03-11 23:19:16 -05:00
Doug Borg ba80b88595 Update lib/widgets/map/map_data_manager.dart
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-11 22:06:52 -06:00
Doug Borg ebb7fd090f Address review: stable tie-breaker and accurate log message
- Add node id tie-breaker to sort comparator so equal-distance nodes
  have deterministic ordering across renders (prevents flicker)
- Log validNodesCount instead of allNodes.length so the message
  reflects the actual post-filter count

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 14:38:58 -06:00
Doug Borg fe401cc04b Prioritize closest nodes to viewport center when render limit is active
Sort nodes by squared distance from viewport center before applying the
render limit, so visible nodes always make the cut instead of arbitrary
selection causing gaps that shift as you pan.

Also: inject node provider for testability, deduplicate validity filter,
and reduce debug log spam to state transitions only.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 15:09:37 -06:00
stopflock de65cecc6a bump ver v2.9.0-release v2.9.0-beta 2026-03-07 16:51:38 -06:00
stopflock 122b303378 Merge pull request #132 from dougborg/fix/tile-retry-on-error
I think this finally has online, offline, proper caching, tile types, all working correctly.
2026-03-07 16:33:42 -06:00
Doug Borg 91e5177056 Detect config drift in cached tile providers and replace stale instances
When a user edits a tile type's URL template, max zoom, or API key
without changing IDs, the cached DeflockTileProvider would keep the old
frozen config. Now _getOrCreateProvider() computes a config fingerprint
and replaces the provider when drift is detected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 12:34:01 -07:00
Doug Borg f3f40f36ef Allow OSM offline downloads, disable button for restricted providers
Allow offline area downloads for OSM tile server. Move the "downloads
not permitted" check from inside the download dialog to the download
button itself — the button is now disabled (greyed out) when the
current tile type doesn't support offline downloads.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 12:34:01 -07:00
Doug Borg 2d92214bed Add offline-first tile system with per-provider caching and error retry
- Add ServicePolicy framework with OSM-specific rate limiting and TTL
- Add per-provider disk tile cache (ProviderTileCacheStore) with O(1)
  lookup, oldest-modified eviction, and ETag/304 revalidation
- Rewrite DeflockTileProvider with two paths: common (NetworkTileProvider)
  and offline-first (disk cache -> local tiles -> network with caching)
- Add zoom-aware offline routing so tiles outside offline area zoom ranges
  use the efficient common path instead of the overhead-heavy offline path
- Fix HTTP client lifecycle: dispose() is now a no-op for flutter_map
  widget recycling; shutdown() handles permanent teardown
- Add TileLayerManager with exponential backoff retry (2s->60s cap),
  provider switch detection, and backoff reset
- Guard null provider/tileType in download dialog with localized error
- Fix Nominatim cache key to use normalized viewbox values
- Comprehensive test coverage (1800+ lines across 6 test files)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 12:34:01 -07:00
stopflock be446fbcbc Merge pull request #140 from FoggedLens/fix/force-simulate-without-secrets
Force simulate mode when OAuth secrets are missing
2026-03-07 12:34:42 -06:00
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
stopflock aeb1903bbc Merge pull request #135 from subfloor201/chore/update-do_builds.sh
Don't require trailing new line in build.keys.conf
2026-03-03 16:04:03 -06:00
stopflock 57df8e83a7 fix tests for profile order, add correct migration 2026-03-02 13:56:07 -06:00
stopflock bc671c4efe Fix phantom FOVs, reorderable profiles 2026-03-02 12:38:49 -06:00
jay 4941c2726d don't require trailing new line in build.keys.conf 2026-02-27 23:59:16 -06:00
stopflock b56e9325b3 Update changelog.json
280
2026-02-25 19:28:48 -06:00
stopflock 30f546be29 Update pubspec.yaml
bump version
2026-02-25 19:27:59 -06:00
stopflock dc817e5eb7 Merge pull request #115 from dougborg/chore/ios26-sdk
Build with iOS 26 SDK for App Store deadline
v2.8.0-rc
2026-02-25 17:07:23 -06:00
stopflock e1cca2f503 Merge pull request #85 from dougborg/chore/deps-applinks-packageinfo
chore(deps): Update app_links and package_info_plus to latest majors
2026-02-25 16:38:05 -06:00
Doug Borg abd8682b49 Build with iOS 26 SDK to meet App Store deadline
Apple requires all iOS/iPadOS apps to be built with the iOS 26 SDK
(Xcode 26+) starting April 28, 2026. Switch the build-ios and
upload-to-stores jobs from macos-latest (macOS 15 / Xcode 16) to
macos-26 (macOS 26 / Xcode 26).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 15:32:16 -07:00
Doug Borg 90a806a10d chore(deps): upgrade minor/patch dependencies within existing constraints
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 15:32:00 -07:00
Doug Borg b6bcd23667 chore(android): bump Dart SDK floor, desugar_jdk_libs, and fix Kotlin DSL deprecation
- Bump Dart SDK constraint from >=3.8.0 to >=3.10.3 to match resolved dependency floor
- Upgrade desugar_jdk_libs from 2.0.4 to 2.1.5 (adds Stream.toList(), better locale support)
- Migrate deprecated kotlinOptions { jvmTarget } to kotlin { compilerOptions { jvmTarget } }
- Remove stale comments and non-breaking space characters

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 15:32:00 -07:00
Doug Borg dba375c63d chore(deps): update app_links and package_info_plus to latest major versions
Upgrade packages:
- app_links: ^6.1.4 → ^7.0.0 (backward compatible with v6)
- package_info_plus: ^8.0.0 → ^9.0.0 (build tooling only, no Dart API changes)

Bump Android build tooling to latest Flutter 3.38-compatible versions:
- AGP: 8.9.1 → 8.11.1
- Gradle: 8.12 → 8.14
- Kotlin: 2.1.0 → 2.2.20

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 15:20:50 -07:00
stopflock 6c52541361 Merge pull request #84 from dougborg/chore/deps-auth-stable
chore(deps): Move auth packages to stable releases
2026-02-25 15:11:10 -06:00