mirror of
https://github.com/square/leakcanary.git
synced 2026-03-13 08:24:22 +08:00
Add Motorola to OEMs causing a static context leak
This commit is contained in:
@@ -1448,7 +1448,8 @@ enum class AndroidReferenceMatchers : ReferenceMatcher.ListBuilder {
|
||||
LENOVO,
|
||||
XIAOMI,
|
||||
TES,
|
||||
REALME
|
||||
REALME,
|
||||
MOTOROLA
|
||||
)
|
||||
references += staticField("android.content.res.ResourcesImpl", "mAppContext").leak(
|
||||
description = """
|
||||
|
||||
@@ -10,6 +10,7 @@ import shark.AndroidReferenceMatcher_XIAMI__RESOURCES_IMPL_Test.Companion.expect
|
||||
import shark.AndroidReferenceMatchers.Companion.HMD_GLOBAL
|
||||
import shark.AndroidReferenceMatchers.Companion.INFINIX
|
||||
import shark.AndroidReferenceMatchers.Companion.LENOVO
|
||||
import shark.AndroidReferenceMatchers.Companion.MOTOROLA
|
||||
import shark.AndroidReferenceMatchers.Companion.NVIDIA
|
||||
import shark.AndroidReferenceMatchers.Companion.XIAOMI
|
||||
import shark.HprofHeapGraph.Companion.openHeapGraph
|
||||
@@ -55,6 +56,7 @@ class AndroidReferenceMatcher_XIAMI__RESOURCES_IMPL_Test(
|
||||
arrayOf(LENOVO, 30, HeapAnalysisSuccess::expectKnownLibraryLeak),
|
||||
arrayOf(INFINIX, 30, HeapAnalysisSuccess::expectKnownLibraryLeak),
|
||||
arrayOf(HMD_GLOBAL, 30, HeapAnalysisSuccess::expectKnownLibraryLeak),
|
||||
arrayOf(MOTOROLA, 30, HeapAnalysisSuccess::expectKnownLibraryLeak),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user