dependency-analysis-gradle-plugin icon indicating copy to clipboard operation
dependency-analysis-gradle-plugin copied to clipboard

FR Understand proguard-only projects

Open ZacSweers opened this issue 5 years ago • 3 comments

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

ZacSweers avatar Dec 26 '19 04:12 ZacSweers

Added a 1.0 milestone. This issue is important enough that I consider it a prereq for 1.0 status.

autonomousapps avatar May 11 '20 00:05 autonomousapps

edit - only applicable to android application projects really

ZacSweers avatar May 26 '20 02:05 ZacSweers

@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.)

autonomousapps avatar Jun 10 '20 05:06 autonomousapps