Skip to content

Commit

Permalink
Exclude any testfairy touchlistener static fields from LeakCanary
Browse files Browse the repository at this point in the history
  • Loading branch information
markushi committed Oct 1, 2024
1 parent c5fd479 commit 5cbb888
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,15 @@ class SdkInitTests : BaseUiTest() {
"com.saucelabs.rdcinjector.testfairy.TestFairyEventQueue",
"context"
)
),
IgnoredReferenceMatcher(
ReferencePattern.StaticFieldPattern(
"com.testfairy.modules.capture.TouchListener",
"k"
)
)
) + ('a'..'z').map { char ->
IgnoredReferenceMatcher(
ReferencePattern.StaticFieldPattern(
"com.testfairy.modules.capture.TouchListener",
"$char"
)
)
}
)

val activityScenario = launchActivity<ComposeActivity>()
Expand Down

0 comments on commit 5cbb888

Please sign in to comment.