Skip to content

Commit 287eff4

Browse files
authored
feat: support imperial system (#125)
* feat: add weight entity and related stuff - It should simplify the management of the unit system and values * feat: add user preference in repository and expose it in `CompositionLocal` * feat: expose user preference in settings screen - reorganized settings * refactor: enforce a display of a max number of decimal digits * feat: resolve default unit system * docs: expand UserPreferencesRepository documentation * refactor: move constant in companion * refactor: mark Weight.kt serializable (for room) * feat: use Weight value class in Measurement entity - refactored all code that uses it * feat: use Weight value class in Set entity for load property - refactored all code that uses it - add some factory methods to Weight entity as helpers - add some docs * refactor: create custom functions to handle unit system suffix logic automatically and centrally * perf: cache value across compositions * docs: update changelog
1 parent a091c75 commit 287eff4

40 files changed

Lines changed: 1209 additions & 281 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Support for imperial system (pounds) [#18](https://github.com/LibreFitOrg/LibreFit/issues/18)
1213
- Russian 🇷🇺 [#124](https://github.com/LibreFitOrg/LibreFit/pull/124)
1314
- Add 5 new exercises [#111](https://github.com/LibreFitOrg/LibreFit/pull/111):
1415
- Wall Sit (Isometric squat against the wall)
@@ -18,12 +19,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1819
- Jumping Jacks
1920

2021
### Changed
22+
2123
-
2224

2325
### Deprecated
26+
2427
-
2528

2629
### Removed
30+
2731
-
2832

2933
### Fixed

0 commit comments

Comments
 (0)