How to migrate AndroidExcludedRefs.clazz() in v1 to v2? #1566
Closed
Description
In v 1.6, I can exclude entire class for leak analysis like the following:
val excludedRefs = AndroidExcludedRefs.createAppDefaults()
.clazz("foo.bar.Some3PartyActivity")
.reason("Ignore leaks from the 3-party library for now")
How to do so in v2? The documentation gives example such as AndroidReferenceMatchers.staticFieldLeak(...)
, but I don't seem to find a equivalent method for .clazz()
in the new AndroidReferenceMatchers
.
Thanks.
Activity