72

GitHub - dvdciri/daggraph: Dagger dependency graph generator for Android Develop...

 6 years ago
source link: https://github.com/dvdciri/daggraph
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

icon.png

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 <folder_path>

bubble_graph.jpg tree_graph.jpg

linked_node_graph.png

Export raw data:

daggraph raw <folder_path>

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 white_check_mark white_check_mark
@Component white_check_mark white_check_mark
@SubComponent white_check_mark white_check_mark
@Provides white_check_mark white_check_mark
Field @Inject white_check_mark white_check_mark
Constructor @Inject x x
@Named() white_check_mark white_check_mark
@Binds x x
Component dependencies x x
Extended modules x x
ActivityBuilder x x

Install

npm install -g daggraph
Usage
   
  $ daggraph            # uses current folder path
  $ daggraph <path>     # uses <path>
  $ daggraph raw        # uses current folder path and export the raw data
  $ daggraph raw <path  # uses <path> 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! smile (follow the general opensource contribution giudelines)

A big shout for the contributions:

Created by

Davide Cirillo

License

MIT © Davide Cirillo


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK