View Source Contributing to ExtFit
Setup
Local repository
# use your own fork 
$ git clone git@github.com:arathunku/ext_fit.git
$ cd ext_fit
$ mix deps.get
# ensure everything works
$ mix test 
# do your changes
$ mix check
Updating to new SDK
Requires Nix package manager.
- Get new SDK from developer.garmin.com
 - Save 
.zipin "sdks/" directory and unzip it next to it withfit-sdk-{{version}} - Run 
scripts/profile-xlsx-as-csv. This uses LibreOffice to convertxlsxtocsv - Update version in 
scripts/gen-profile - Generate new profile files with 
scripts/gen-profile 
Add new test FIT files
Requires Nix package manager.
Add new file to
test/support/filesPlease use name {{YYYY}}-{{MM}}-{{DD}}-{{company}}-{{device}}-{{context}}.fit where date should mostly match date when the activity was recorded
Optional:
Run
scripts/generate-dumps-for-test-files, this will use official fit2csv tool to dump.csvfile,