dvdciri/daggraph

Dagger dependency graph generator for Android Developers

JavaScript

1,143

37 commits

updated Jan 3, 2023

See the code

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

FeatureJavaKotlin
@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

component
dagger
dagger2
dependency-injection
generate
graph
module

dvdciri/daggraph

Dagger dependency graph generator for Android Developers

JavaScript

1,143

37 commits

updated Jan 3, 2023

See the code

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

FeatureJavaKotlin
@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

component
dagger
dagger2
dependency-injection
generate
graph
module

Project health

Overall

2.0/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

Latest release

0.3.3 · Aug 19, 2018

Releases this year

0

Significant stargazers

Zac Sweers

2,628 followers · starred Jan 2018

Veyndan Stuart

92 followers · starred Jan 2020

Nicklas Ansman

171 followers · starred Dec 2017

Shaishav Gandhi

205 followers · starred Jan 2018