Is there a way to delete all the code like supporting classes, xmls, methods, imports etc just by passing the parent class say an activity?
I have an old code and want to delete an activity say "Foo.java". How can I delete all the classes, methods, xmls which are just used by this Foo.java and its supporting viewmodel, fragments, dialogs etc.
I want to delete the whole tree of code with Foo.java as its root node.
Foo.java
|
|-- VM
| |- sub classes -- sub sub classes ...
| |- sub classes -- sub sub classes ...
|
|-- Fragment -- sub
...
...
|- Styles -- sub
|- Res -- sub
Any gradle/lint task or plugin?