Only provide actionable module structure advice#1417
Only provide actionable module structure advice#1417joshfriend wants to merge 2 commits intoautonomousapps:mainfrom
Conversation
The threshold of 2 uses of android features is totally arbitrary and not helpful in practice. This is especially true for the "Has Android library dependencies" advice, for which there is really no workaround and happens extremely frequently in our build.
8b908fe to
bed0e43
Compare
autonomousapps
left a comment
There was a problem hiding this comment.
I agree that the threshhold of 2 is arbitrary. Is it your position that the concept of a score is, per se, meaningless, and it's simply a binary yes/no situation?
Yep, that is my view. I did not remove all of the scoring code, but if we agree on this I probably should. |
|
The rationale for a score was that there are certain Android features that users tend to cargo cult that they aren't using, and so I wanted to flag them as something that could be deleted et voilà --> JVM project. For example, lots of Android modules (in the past, anyway), have a |
But currently the plugin does not detect if some features are actually being used (like buildconfig), it only detects that they are enabled, which IMO is not useful (especially in square's build where we disable everything by default and have other checks to determine if you are using resources or not for example). I think I'm trying to make the argument that the status quo is not useful to any builds, and my proposal here is at least useful to square 😄. |
|
Hi! I want to share the same feedback from our experience. We are currently introducing DAGP in our modularized project and are also getting a lot of : Those are all not actionable in any way, only noisy and, initially, confusing.
It sounds to me that it should be the task of other tools to flag such issues (like Android Lint). |
The threshold of 2 uses of android features is totally arbitrary and not helpful in practice.
This is especially true for the "Has Android library dependencies" advice, for which there is really no workaround and happens extremely frequently in our build.