Skip to content

Commit

Permalink
chore: update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iarata committed Jan 9, 2025
1 parent 90d9502 commit 028b74b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/health/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
- The `Health()` factory constructor is removed.
- The `Health` class now accepts an (optional) `DeviceInfoPlugin` dependency through its constructor, this change was introduced to provide easy mocking of the `DeviceInfo` class during unit tests.
- This architectural change means that, for the application to work correctly, the `Health` class *MUST* be initialized correctly as a global instance.
- Previously, the `Health` class directly instantiated the `DeviceInfoPlugin` internally, which was not ideal when trying to mock this functionality in unit tests, and could lead to problems with state management.
* **Impact**:
- For most users, **no immediate code changes are required** but it is paramount to initialize the `Health` class as a global instance (i.e. do not call `Health()` every time but rather define an instance `final health = Health();`).
* **BREAKING** (Android) Remove automatic permission request of `DISTANCE_DELTA` and `TOTAL_CALORIES_BURNED` data types when requesting permission for `WORKOUT` health data type.
Expand Down

0 comments on commit 028b74b

Please sign in to comment.