- Before this fix the app was accessing activity sensor APIs through ActivitSensorInstance. This is a base class that talks to OS ActivitySensor APIs. But on devices without a sensorcore the GetInstance() method of this class creates LumiaActivitySensor (that wraps SensorCore APIs). We are now moving from inheritance to interface based wrappers. IActivitySensor is a common interface that will be implemented by both the wrappers. A factory is used to create the appropriate sensor.
- Moved SensorCore API exception handling to LumiaActivitySensor Class.
- Fixed an edge case in history retreival.
The total duration of each activity is calculated starting from 0:00 of
the current day. Last activity is calculated until current time (today)
or 00:00 of the next day.
This is because the NuGet does not actually install the packages it
restores, so if we don't include the file, it will not be visible unless
the SDK in cleanly installed again.