Tag: hilt
-
Creating android app using MVVM + Coroutines + Flow + Hilt
In this tutorial, I will explain the MVVM architecture with kotlin coroutines and kotlin flow with hilt dependency injection. Also, I will explain the Room database with the flow in this tutorial. let’s begin with a short introduction about the features I will use in this tutorial. What is MVVM? MVVM (Model-View-ViewModel) pattern helps to […]
-
Dependency injection on Android with Hilt[Example]
Dependency injection (DI) is a technique widely used in programming and well suited to Android development, where dependencies are provided to a class instead of creating them itself. By following DI principles, you lay the groundwork for good app architecture, greater code reusability, and ease of testing. The new Hilt library defines a standard way to do DI in your […]