Add variant exclusion per-project in DSL#1461
Add variant exclusion per-project in DSL#1461joshfriend wants to merge 1 commit intoautonomousapps:mainfrom
Conversation
autonomousapps
left a comment
There was a problem hiding this comment.
Why is this on the AbiHandler? The way it's used, it looks like it's causing the variant to be ignored for all use-cases, not just ABI analysis. And given that, why isn't the existing functionality to ignore specific source sets sufficient?
I got it mixed up with the
If I have an Android project with only a |
We have a lot of
fake/demo/testingstyle projects that are only intended for consumption by debug variant apps. Some of these have onlydebug/sourcesets. In a perfect world, we would use single-variant android libraries and rely on other tooling to ensure these projects never end up in release builds. Our current state leaves us with a lot of complications if we try to run analysis on both debug and release variants because these debug-only projects often fail to compile in the release configuration, or we are just wasting time by analyzingreleaseUnitTeststuff.I'd propose this as an intermediate solution until a v3.0 where we might have a more advanced DSL for exclusions. What I'd really like to do is be able to exclude release variants for test source sets everywhere.