FitContributor and min SDK support

Hi,

Sorry, I haven't got a unsupported 1.3/2.1 device (like epix) to test this.

If I use FitContributor and set the Min SDK to 1.2.x on a DataField, and then using the code (self has :createField) operator to check it exists; will this be okay on devices like Epix (or even supported devices on a older Firmware) when it comes across the using Toybox.FitContributor in the project?

I don't want to exclude these unsupported devices from using the DataField, but just not enable the FIT recording.

Cheers
Chris
  • You should use "has" for the FitContributor calls before you use them. Maybe check in initialize() and set a boolean, and then check that boolean where ever you need in your code.
  • Yes, you should be fine when it comes to createField, but I'm not sure about is what happens if you have a using Toybox.FitContributor as Contrib at the top of the file, but Toybox has :FitContributor would return false. It seems to me it should be harmless, but I honestly do not know.

    Travis