You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
closes#57, closes#47
This pull request includes multiple changes to the Android app and
Flutter codebase, focusing on improving health data permissions,
onboarding flow, and theme management. The most important changes
include updating permissions in the Android manifest, enhancing the
authorization wrapper, adding onboarding providers and routes, updating
theme management, and extending localization for onboarding and
permissions.
### Permissions Updates:
*
[`android/app/src/main/AndroidManifest.xml`](diffhunk://#diff-63272c98a6330850888e633b43ba4c9decee6431a115e0d2731564838eaa1d1dL16-R23):
Removed `READ_SPEED` and `WRITE_SPEED` permissions and added
`MANAGE_HEALTH_DATA` permission. Added an intent filter for requesting
historical health data permissions.
[[1]](diffhunk://#diff-63272c98a6330850888e633b43ba4c9decee6431a115e0d2731564838eaa1d1dL16-R23)
[[2]](diffhunk://#diff-63272c98a6330850888e633b43ba4c9decee6431a115e0d2731564838eaa1d1dR55-R59)
### Authorization Wrapper Enhancements:
*
[`lib/core/authorizationWrapper.dart`](diffhunk://#diff-7a413f9bfaab163aa36bfbe36da5029ef3bcb07ea2000a8907b2b55b1c40e2e4R3-R5):
Integrated onboarding status check and enhanced UI for different
authorization states, including error handling and permission requests.
[[1]](diffhunk://#diff-7a413f9bfaab163aa36bfbe36da5029ef3bcb07ea2000a8907b2b55b1c40e2e4R3-R5)
[[2]](diffhunk://#diff-7a413f9bfaab163aa36bfbe36da5029ef3bcb07ea2000a8907b2b55b1c40e2e4R17-R135)
### Onboarding Flow:
*
[`lib/core/navigation_host.dart`](diffhunk://#diff-02bf8d0c46b3059f94aa10aabbc55a5ce32a145dd7524f49b635fe42304a96deR3-R7):
Added onboarding routes and providers to manage the onboarding flow and
ensure the initial location is set based on onboarding completion
status.
[[1]](diffhunk://#diff-02bf8d0c46b3059f94aa10aabbc55a5ce32a145dd7524f49b635fe42304a96deR3-R7)
[[2]](diffhunk://#diff-02bf8d0c46b3059f94aa10aabbc55a5ce32a145dd7524f49b635fe42304a96deL13-R36)
[[3]](diffhunk://#diff-02bf8d0c46b3059f94aa10aabbc55a5ce32a145dd7524f49b635fe42304a96deR66)
### Theme Management:
*
[`lib/data/repositories/profile_repository_impl.dart`](diffhunk://#diff-f54b2ecf8ed7418352d6d20b69beb298f64b8d7fd9615633ee136d3a31f72741R23-R24):
Changed theme management from a simple dark mode boolean to an
`AppThemeMode` enum, allowing for system, light, and dark modes.
[[1]](diffhunk://#diff-f54b2ecf8ed7418352d6d20b69beb298f64b8d7fd9615633ee136d3a31f72741R23-R24)
[[2]](diffhunk://#diff-f54b2ecf8ed7418352d6d20b69beb298f64b8d7fd9615633ee136d3a31f72741L46-R62)
*
[`lib/domain/repositories/profile_repository.dart`](diffhunk://#diff-536199512adad702fb94653f50545728e0e1c873de8c84c10e6dfa77b4c54812L2-R13):
Updated the profile repository to handle the new `AppThemeMode` enum.
[[1]](diffhunk://#diff-536199512adad702fb94653f50545728e0e1c873de8c84c10e6dfa77b4c54812L2-R13)
[[2]](diffhunk://#diff-536199512adad702fb94653f50545728e0e1c873de8c84c10e6dfa77b4c54812L18-R26)
### Localization:
* `lib/l10n/app_de.arb` and `lib/l10n/app_en.arb`: Added and updated
localization strings for onboarding, permissions, and theme mode.
[[1]](diffhunk://#diff-36252c65ab82cbff4774b4983cb9027a2bef4cb738d5ea656c0b903939b3871aL6-R41)
[[2]](diffhunk://#diff-36252c65ab82cbff4774b4983cb9027a2bef4cb738d5ea656c0b903939b3871aL272-R331)
[[3]](diffhunk://#diff-9796fde3771f42a3a759ccc941731d83f96037a661e47dde27ce81d3447a69c2R41-R44)
0 commit comments