This is a sample Android project demonstrating the use of Decompose library together with Dagger DI framework, Anvil by Zac Sweers and anvil-utils (a tiny Anvil plugin for reducing Dagger boilerplate code even further).
The project consists of the following modules:
repository
- Contains a simple in-memoryRepository
, shared in feature modules.utils
- Contains some utils likeAppScope
annotation, etc.feature-list
- ContainsListComponent
that shows a list of text items. Clicking on an item opensDetailsComponent
.feature-details
- ContainsDetailsComponent
that shows the previously selected item.feature-root
- ContainsRootComponent
that navigates betweenListComponent
andDetailsComponent
, plus some unit tests forDefaultRootComponent
.app-android
- ContainsMainActivity
that showsRootComponent
.