Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


Daggraph


Dagger dependency graph generator for Android Developers



Build Status
npm
npm
License

## 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)