Assisted Injection in ViewModel using Hilt

assisted injection in viewmodel

You are using hilt for dependency injection in your android project. You may encounter a situation where you need to provide some dynamic dependencies to your ViewModel. In this situation you can use Assisted Injection in ViewModel. For the example I will take the project that we created in the last tutorial. You can check …

Read moreAssisted Injection in ViewModel using Hilt

kTor Android Client Tutorial – Performing Simple GET Request

ktor android tutorial

Previously I’ve published a tutorial about building a RESTful API with kTor. But you know what kTor is multiplatform, that means we can also consume the RESTful APIs using kTor; and in this kTor Android Client Tutorial we will learn performing a simple HTTP GET request using ktor android client.  In this project I …

Read morekTor Android Client Tutorial – Performing Simple GET Request

Firebase Authentication using MVVM with Hilt and Coroutines

Firebase Authentication using MVVM

Hi Everyone, welcome to another post. Today we will learn integration Firebase Authentication using MVVM Architecture. Today we are going to build a complete authentication app using Firebase. Now without wasting anytime let’s get started. at SIM Only Deals at SIM Only Deals Powered by Embed YouTube Video Prerequisites Understanding of MVVM Architecture in Android …

Read moreFirebase Authentication using MVVM with Hilt and Coroutines

Android Espresso Tutorial – Testing Fragment in Isolation

Android Espresso Tutorial

Welcome to another tutorial in the Android Testing Series. And this post is called Android Espresso Tutorial that means we are now moving to UI Testing. Espresso is a Testing Framework for writing Automated UI Tests for your Android Application. With espresso, we can simulate the user interaction in our application; its the same as …

Read moreAndroid Espresso Tutorial – Testing Fragment in Isolation

Android ViewModel Unit Test Tutorial

Android Unit Test ViewModel

Hi Guys, welcome to Android ViewModel Unit Test Tutorial. This post is also part of our Android Testing Series. In this post, we will learn how to test our ViewModels. So far, we have learned about writing Unit Tests using JUnit4 and Instrumented Unit Test using AndroidJUnit4. We also learned writing tests for Room Database. Now, …

Read moreAndroid ViewModel Unit Test Tutorial

Android Unit Test Room Database – Testing Room DAOs

Android Unit Test Room Database Thumb

In the last post, we learned about Writing The First Unit Test in our Android Project. Now it’s time to level up the things a little. This post’s title is “Android Unit Test Room Database”; we will focus on testing the room database this time. I guess what you usually do is you write your database …

Read moreAndroid Unit Test Room Database – Testing Room DAOs