Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvdciri/daggraph
Dagger dependency graph generator for Android Developers
https://github.com/dvdciri/daggraph
component dagger dagger2 dependency-injection generate graph module
Last synced: about 1 month ago
JSON representation
Dagger dependency graph generator for Android Developers
- Host: GitHub
- URL: https://github.com/dvdciri/daggraph
- Owner: dvdciri
- License: mit
- Created: 2017-11-27T11:59:02.000Z (almost 7 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-03T20:58:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-01T16:03:42.201Z (about 2 months ago)
- Topics: component, dagger, dagger2, dependency-injection, generate, graph, module
- Language: JavaScript
- Homepage:
- Size: 2.5 MB
- Stars: 1,147
- Watchers: 30
- Forks: 58
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Daggraph
Dagger dependency graph generator for Android Developers
## Deprecation
This library is now deprecated in favour of solutions based directly on the Dagger PSI (`BindingGraphPlugin`). The project will no longer be maintained.This is an example project that works pretty well: https://github.com/arunkumar9t2/scabbard.
## Usage
Simple usage:
> daggraph ``
--------
Export raw data:
> daggraph raw ``## Features
Those are the features that are currently supported and used to build the graph, some of them are work in progress while some other will be picked up at a later stage| Feature | Java | Kotlin |
| ----------------------|:-------------:|:-------:|
| @Module | ✅ | ✅ |
| @Component | ✅ | ✅ |
| @SubComponent | ✅ | ✅ |
| @Provides | ✅ | ✅ |
| Field @Inject | ✅ | ✅ |
| Constructor @Inject | ❌ | ❌ |
| @Named() | ✅ | ✅ |
| @Binds | ❌ | ❌ |
| Component dependencies| ❌ | ❌ |
| Extended modules | ❌ | ❌ |
| ActivityBuilder | ❌ | ❌ |## Install
```sh
npm install -g daggraph
```## Help
```
Usage
$ daggraph # uses current folder path
$ daggraph # uses
$ daggraph raw # uses current folder path and export the raw data
$ daggraph raw and export the raw data
Examples$ daggraph /Path/to/android/project
```## Contribute
Feel free to contribute by checking out the issues and picking somethig up! 😄 (follow the general opensource contribution giudelines)A big shout for the contributions:
- [Matteo Basso](https://github.com/mbasso)
- [César Ferreira](https://github.com/cesarferreira)## Created by
[Davide Cirillo](https://github.com/dvdciri)## License
MIT © [Davide Cirillo](https://github.com/dvdciri)