withDownstreamVariants

Returns a sequence starting with the receiver's configuration, then all downstream configurations.

For example, if we're checking to see if a transitive dependency is used in main, we should also check whether it's used in the source sets which inherit from main (like debug, release, androidTest, test, etc.).

Sources

Link copied to clipboard