Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Android Dependency Injection With Dagger 2 - II
Rating: 4.3 out of 5(4 ratings)
30 students

Android Dependency Injection With Dagger 2 - II

Master Dagger 2 Android Dependency Injection With MVVM architecture complete app
Created byRichard Dewan
Last updated 12/2021
English

What you'll learn

  • Dependency Injection
  • Dagger 2
  • MVVM
  • Kotlin Coroutines
  • Retrofit
  • Room

Course content

1 section34 lectures3h 22m total length
  • Download Project File0:01
  • Base Project walk through6:37
  • Base URL0:02
  • Configure base URL and endpoints6:11

    Define a data package with local and remote data caches, create an endpoints class for api calls such as get tax and get all tax, and configure the base URL.

  • Retrofit3:35

    Create and configure a retrofit instance to build a networking service interface, including a converter factory, and return the network service for API calls.

  • Request and Response data class file4:28

    Define request and response data classes for API calls, and generate them from postman payloads. Prepare to send data to the endpoint and receive responses in the network service.

  • NetworkService9:03

    Configure the network service and implement suspend functions to fetch all taxes and to fetch a tax by id using defined endpoints, headers, and Retrofit tooling.

  • Network resource file5:28
  • Main Repository3:32
  • Task Entity4:09
  • Database service and DAO5:11
  • Add task repository4:41
  • Configure MainViewModel - Part I7:54
  • Configure MainViewModel - Part II9:56
  • Configure AddViewModel10:38
  • ViewModelProviderFactory5:58
  • Application module and component12:09
  • Application class inject dependencies6:21

    Configure a dagger application component and application module to provide singleton network and database services, inject dependencies into the to-do app, and set up the repository as a shared dependency.

  • Repository class constructor injection4:01
  • Activity module and component3:40
  • Activity and Fragment Scope3:09
  • Fragment Componet and Module9:44
  • Inject dependencies in home fragment9:18
  • Inject dependencies in add fragment8:40

    Learn to inject dependencies into a fragment with Dagger 2, wiring the application and fragment components, a view model factory, and repository to power the add fragment.

  • Bug Fix5:04
  • Task list layout5:39
  • Task Adaptor5:04
  • Implement task adaptor5:37
  • Get task list from local db6:39
  • Display data to recycler view4:23
  • Add task to api9:39

    Enable task creation in the attacks fragment by populating fields, wiring the add task action to the api via dependency injection, and showing snackbar feedback on success or error.

  • Bug fix7:07

    Debug and fix a bug in Android app by identifying a missing user id in the request, addressing 500 error, and validating successful data insertion, while leveraging Dagger and Kotlin.

  • Snackbar6:51
  • Thank You1:44

    I congratulate you on completing all lectures in this final lecture and invite you to explore my other Android courses on Udemy, with coupon codes and financial aid options.

Requirements

  • Basic of Android Development
  • Android Dependency Injection With Dagger - I OR Basic knowledge of Dagger 2

Description

In this course we will learn android dependency injection using Kotlin and MVVM. We will build a complete app using Kotlin, Coroutines, Room, Retrofit, Dagger and MVVM. This course is fully practical no talking just doing. If you have already completed Android Dependency Injection With Dagger - I, this course is for you. 

This course is for anyone who is interested in learning Android Dependency Injection With Dagger. By the end of the course you will have a good understanding about dependency injection and Dagger 2.

Who this course is for:

  • Any one intrested to learn adroid dependency injection with dagger
  • Android developer