• Stars
    star
    1,147
  • Rank 40,664 (Top 0.9 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Dagger dependency graph generator for Android Developers

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


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 βœ… βœ…
@Component βœ… βœ…
@SubComponent βœ… βœ…
@Provides βœ… βœ…
Field @Inject βœ… βœ…
Constructor @Inject ❌ ❌
@Named() βœ… βœ…
@Binds ❌ ❌
Component dependencies ❌ ❌
Extended modules ❌ ❌
ActivityBuilder ❌ ❌

Install

npm install -g daggraph

Help

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! πŸ˜„ (follow the general opensource contribution giudelines)

A big shout for the contributions:

Created by

Davide Cirillo

License

MIT Β© Davide Cirillo