Skip to content

Support boxing .fit files - #2873

Merged
robiningelbrecht merged 4 commits into
dreeveapp:masterfrom
techk1ng:support-boxing-fit-files
Oct 20, 2026
Merged

robiningelbrecht merged 4 commits into
dreeveapp:masterfrom
techk1ng:support-boxing-fit-files

Conversation

@techk1ng

@techk1ng techk1ng commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Improvement
  • Translations
  • Documentation Update

Description

Garmin devices (e.g. the HRM 600) record boxing as FIT sport 47. FitSportType has no mapping for it, so importing a boxing activity fails with:

Unsupported FIT sport 47 (sub sport 0)

Dreeve has no boxing sport type, so this PR maps sport 47 to Workout. That's the same fallback disc golf uses. It also adds a boxing case to FitSportTypeTest.

Testing:

  • FitSportTypeTest and FitFileParserTest pass (135 tests).
  • A real boxing .fit file recorded on an HRM 600 failed with the error above on v5.6.1. With this change it parses as a Workout.

🤖 Generated with Claude Code

techk1ng and others added 4 commits October 20, 2026 21:56
Garmin records boxing as FIT sport 47, which had no mapping, so these
files were rejected with "Unsupported FIT sport 47 (sub sport 0)".
Map it to Workout, the same fallback used for disc golf.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@robiningelbrecht

Copy link
Copy Markdown
Collaborator

Thanks for your contribution. I think I will add "boxing" as a separate sport type as well. It make sense to have a specific icon for these workouts?

@techk1ng

Copy link
Copy Markdown
Contributor Author

Thanks for your contribution. I think I will add "boxing" as a separate sport type as well. It make sense to have a specific icon for these workouts?

Yes please! That would be great

@robiningelbrecht

Copy link
Copy Markdown
Collaborator
image

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@techk1ng

Copy link
Copy Markdown
Contributor Author
image

Appreciate the quick implementation of this!

@robiningelbrecht

Copy link
Copy Markdown
Collaborator

Can you send me an example FIT file of yours so I can test this?

@techk1ng

Copy link
Copy Markdown
Contributor Author

Can you send me an example FIT file of yours so I can test this?

boxing-hrm600.zip
Here you go

@robiningelbrecht
robiningelbrecht merged commit c71e0ae into dreeveapp:master Oct 20, 2026
2 checks passed
robiningelbrecht added a commit that referenced this pull request Oct 20, 2026
robiningelbrecht added a commit that referenced this pull request Oct 20, 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.

2 participants