Skip to content
项目

关于

面向 Android 开发者的 Dagger 依赖关系图生成器

开发工具

这些数字如何统计

可以做什么

  • @SubComponent - ✅ - ✅
  • Field @Inject - ✅ - ✅
  • Constructor @Inject - ❌ - ❌
  • Component dependencies - ❌ - ❌

实测星标增长

24小时
+1
7天
+1
15天
-1
1个月
-7

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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

探索相关项目

加载中…