Code generators designed for use with Anvil-KSP to simplify dependency injection in Android applications.
Primarily shared as practical examples of how to use Anvil-KSP generators.
Below is a list of all implemented helpers:
- @ContributesActivity
For injecting dependencies into Android Activities. - @ContributesViewModel
For injecting dependencies into Android ViewModels. - @ContributesCoroutineWorker
For injecting dependencies into Android WorkManager CoroutineWorkers. - @ContributesTest
For injecting dependencies into JUnit4 Android instrumented tests. - @ContributesInitializer
For merging initialization code fragments from submodules into the main application and executing it at application startup. - @ContributesExperiment
For declaring feature flags in submodules and aggregating them in the main application.
For more information, visit the project website: https://illarionov.github.io/pixnews-anvil-codegen