dependency-analysis-gradle-plugin
dependency-analysis-gradle-plugin copied to clipboard
FR Understand proguard-only projects
Some projects contain only proguard files used by AGP. Example: https://github.com/artem-zinnatullin/RxJavaProGuardRules
Might be tricky as other "unused" projects would still have their proguard files being used. I think a reasonable middle ground is to only ignore them if they only have proguard files included and nothing else.
Alternatively could be handled by an exclusion extension of some sort
Added a 1.0 milestone. This issue is important enough that I consider it a prereq for 1.0 status.
edit - only applicable to android application projects really
@ZacSweers you said
I think a reasonable middle ground is to only ignore them if they only have proguard files included and nothing else.
Whereas I was thinking, if a project only contains proguard rules, always consider it used. Or am I misunderstanding you?
Relatedly, if a project only contains proguard rules, could it be compileOnly? Or if that doesn't work, releaseImplementation instead of implementation? (since it is only relevant on build types where minifyEnabled is true.)