Skip to content

feat: export a run's route as GPX - #2

Closed
ricaezejo wants to merge 4 commits into
feat/fullscreen-route-mapfrom
feat/gpx-export
Closed

ricaezejo wants to merge 4 commits into
feat/fullscreen-route-mapfrom
feat/gpx-export

Conversation

@ricaezejo

Copy link
Copy Markdown
Owner

Summary

Adds Export to the Route card on a finished GPS workout: the run as a GPX 1.1 file, handed to the system share sheet as OpenStrap_<workout start>.gpx.

  • GpxWriter writes the same smoothed track the app draws, with time, elevation when a fix has one, and heart rate (gpxtpx:hr) when a reading is within 30 s.
  • A pause ends a track segment and fixes recorded inside the pause are left out, so there is no line across it.
  • Coordinates always use a dot (also in de-DE); names are XML-escaped.
  • Shares through the existing share/ FileProvider path. No new permissions, no network use; docs/privacy.md has a line on it.
  • If the file cannot be written the user gets a toast and nothing is shared.
  • The new Dispatchers.IO is baselined in both detekt baselines the way the share card's is.

Stacked on the full-screen map PR (base: feat/fullscreen-route-map). Strava upload and a Health Connect route are out of scope.

Test plan

  • ./gradlew :app:testDebugUnitTest :protocol:test :app:lintDebug detektMain. ktlintCheck reports findings across the repo (it is continue-on-error in CI).
  • On a device (fake 2.77 km GPS run): Export opens the share sheet and the file is valid GPX with the right line and times.
  • Strava's web file upload accepts the file.
  • Not yet checked: heart rate in the file (the test run had no strap), and a run with a pause.

@ricaezejo
ricaezejo changed the base branch from main to feat/fullscreen-route-map November 6, 2026 10:31
@ricaezejo
ricaezejo added this pull request to stack #3 November 6, 2026 10:31
@ricaezejo
ricaezejo force-pushed the feat/fullscreen-route-map branch from 2b169f8 to 7e38e06 Compare November 6, 2026 10:38
ricaezejo and others added 4 commits November 8, 2026 22:03
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ricaezejo
ricaezejo force-pushed the feat/fullscreen-route-map branch from 7e38e06 to dfba02a Compare November 8, 2026 21:26
@ricaezejo
ricaezejo removed this pull request from stack #3 November 8, 2026 21:28
@ricaezejo

Copy link
Copy Markdown
Owner Author

Moved upstream: sayed0am#58

@ricaezejo ricaezejo closed this Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant