waseefakhtar / dose-android

💊⏰ Dose is a medication reminder app for Android, built entirely using Kotlin and Jetpack Compose with MVVM + Clean Architecture
https://play.google.com/store/apps/details?id=com.waseefakhtar.doseapp
MIT License
509 stars 80 forks source link

Inject AnalyticsHelper with Hilt #118

Closed ankur141295 closed 7 months ago

ankur141295 commented 9 months ago

This pull request contains the following changes:

This change addresses #74

Please review the changes and let me know if you have any questions.

ankur141295 commented 7 months ago

@waseefakhtar

I've redone the code changes, injecting AnalyticsHelper directly into ViewModels wherever possible to call logging functions. For composables like BottomAppBar and FAB that lack ViewModels, the AnalyticsHelper dependency is still provided as a parameter.

Kindly review the code changes and let me know if any further changes are required.