theheraldproject/herald-for-ios

Move all SensorArray.add calls outside of core Herald classes

adamfowleruk opened this issue · 1 comments

Please start with a use case description for a USER of this enhancement

[Who] As an app developer

[What] I want exact control of which sensors are added with which runtime settings

[Value] To tailor behaviour and features to my application

Describe the potential solution you'd like

Externalise all adding of sensors outside of Sensor Array and in to application code, including configuration of sensors via their constructors and functions, and not via global configuration variables.

Describe alternatives you've considered

None. There are always cases of needing to customise this functionality.

Additional context

N/A

Relative priority

HIGH - affects ability to test Herald with non-fixed payloads, alter logging behaviour without debug flags, and reduce global configuration variables.

Fixed as part of a recent PR.