https://github.com/icapps/android-architecture-annotation-processor
Annotations and annotation processor to reduce dagger boilerplate
https://github.com/icapps/android-architecture-annotation-processor
Last synced: about 1 month ago
JSON representation
Annotations and annotation processor to reduce dagger boilerplate
- Host: GitHub
- URL: https://github.com/icapps/android-architecture-annotation-processor
- Owner: icapps
- Created: 2020-01-22T14:13:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-09T12:55:28.000Z (over 5 years ago)
- Last Synced: 2025-03-23T15:15:53.164Z (about 1 year ago)
- Language: Kotlin
- Size: 373 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Android Arch annotation processor
### What?
This library aims to reduce boilerplate in projects based upon our architecture.
The project consists of annotations, used to mark injectable activities and
fragments, as well as viewmodels.
The annotation processor will generate a dagger module, which can be included in
your app component.
### Usage
The following annotations can be used to be processed:
- `AndroidInjected`
- `GenerateViewModelInjector`
Classes annotated with `AndroidInjected` will be processed into a `GeneratedAndroidInjectedModule` module. Each class will be provided by a method in the module annotated with a `@ContributesAndroidInjector` annotation.
Classes annotated with `GenerateViewModelInjector` will be processed into a `GeneratedViewModelModule`. Each class will be provided and bound into a map with a `ViewModelKey`, as seen in our [template project](https://github.com/icapps/android-template-kotlin-viewmodel).
### Installation instructions
`dependencies {`
`implementation com.icapps.android:arch-annotations`:[  ](https://bintray.com/icapps/maven/icapps-arch-annotations/_latestVersion)
`kapt com.icapps.android:arch-annotation-processor`: [  ](https://bintray.com/icapps/maven/icapps-arch-annotation-processor/_latestVersion)
`}`