https://github.com/illarionov/pixnews-anvil-codegen
Various Anvil code generators
https://github.com/illarionov/pixnews-anvil-codegen
android anvil dagger2 dependency-injection kotlin
Last synced: 7 months ago
JSON representation
Various Anvil code generators
- Host: GitHub
- URL: https://github.com/illarionov/pixnews-anvil-codegen
- Owner: illarionov
- License: apache-2.0
- Created: 2024-01-11T13:01:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-28T17:08:43.000Z (over 1 year ago)
- Last Synced: 2024-03-28T18:30:04.042Z (over 1 year ago)
- Topics: android, anvil, dagger2, dependency-injection, kotlin
- Language: Kotlin
- Homepage:
- Size: 508 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# Pixnews Anvil-KSP Code Generators
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](https://illarionov.github.io/pixnews-anvil-codegen)
[Anvil-ksp]: https://github.com/square/anvil
[Dagger]: https://github.com/google/dagger