Skip to content

How to migrate AndroidExcludedRefs.clazz() in v1 to v2? #1566

Closed
@orionlee

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions