Media Summary: The HomeViewModel has an inject annotated constructor. Because of the way Jetpack ViewModels interact with Fragments, we ... In this lesson we go over how to expose Singleton dependencies in a modular way. Singleton dependencies provided by the ... video !multistream NEW COW GUIDE - Check out the stream!
Dagger 2 Deep Dive 18 - Detailed Analysis & Overview
The HomeViewModel has an inject annotated constructor. Because of the way Jetpack ViewModels interact with Fragments, we ... In this lesson we go over how to expose Singleton dependencies in a modular way. Singleton dependencies provided by the ... video !multistream NEW COW GUIDE - Check out the stream! Before bringing in the real GitHub API, our app needs to support making requests on a background thread. In this lesson we'll ... The HomeFragment will be driven by "view states" that come from a ViewModel. In this lesson we'll create the view model, along ... We'll go over the app that we're building and how
This video is an overview of everything we covered in the We start off by building a simple app that displays a count. The Counter is created by the "ViewModel" rather than passed to it. Dependency injection doesn't require a framework, it's simply a pattern of passing dependencies to an object, rather than having ... In this lesson we create an internal testing module along with the TestApplicationComponent. This is a test Component that will ... In this lesson we'll convert the HomeFragment repository list to use PowerAdapter, as well as add another item type in our list to ... In this lesson, we update the AppRepository to use a basic in memory cache to save a network request when fetching a single ...
We'll need to reference the Application Component in the future, so we start by creating a custom Application class and initializing ... Our project will have separate modules for our separate functional pieces. The GitHubApi module will define our API models and ... As an example of how to share dependencies across scopes, without making them a Singleton, this lesson has us add a ... In this lesson we add a new project and interface to handle screen navigation. This is more to demonstrate how to share ...