dvdciri / daggraph

Dagger dependency graph generator for Android Developers
MIT License
1.15k stars 58 forks source link

Add constructor injected dependencies to the graph #53

Open dvdciri opened 6 years ago

dvdciri commented 6 years ago

Daggraph need to be able to recognise constructor injected dependencies and add them to the graph.

There are some open questions here:

This is the regex for koltin: /(?:class)\s(\w*).*?(?:@Inject).*?(?:constructor)\((.*?)\)\s?\{/gs This is the regex for java: /(?:@Inject).*?\s(\w*?)\((.*?)\)\s?{/gs