Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Analytics and Loggers in common module #10

Merged
merged 3 commits into from
Feb 16, 2024

Conversation

nisrulz
Copy link
Owner

@nisrulz nisrulz commented Feb 16, 2024

  • Uses composition design pattern
  • Setup using Multibindings via Hilt

Usecase

Often times when using a logger or Analytics service, we have a need to trigger multiple services i.e When tracking user journey, one could need to track the event of navigating to the Details screen in Google Analytics and Firebase Analytics both.

Using this pattern allows to set it as a single entry point, while abstracting away the addition of these services to a single init phase via the Multibindings in Hilt.

Result

Screenshot 2024-02-16 at 05 05 50

- Uses composition design pattern
- Setup using Multibindings via Hilt
@nisrulz nisrulz merged commit eebc9be into main Feb 16, 2024
2 checks passed
@nisrulz nisrulz deleted the feature/multibinding-for-composition branch February 16, 2024 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant