nowinandroid
nowinandroid copied to clipboard
[FR]: Suggest changing the UI layer injection method of Analytics Instance in Analytics Module.
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the problem
Suggest changing the UI layer injection method of Analytics Instance in Analytics Module.
Instead of using CompositionLocal, how about using Hilt's EntryPoint?
It has these advantages.
- It has the advantage of reducing MainActivity injection code.
- Management outside HiltScope can be reduced.
- Analytics can eliminate compose dependency.
Additionally, in analytics/AnalyticsModule, how about creating an instance as a singleton?
Describe the solution
Change Injection of CompositionLocal to Hilt's EntryPoint
Additional context
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Get newer