From e558d8a01a1026f16b3260bc562220cb12719d0c Mon Sep 17 00:00:00 2001 From: Riyaz Mohammed Ibrahim Date: Fri, 25 Jan 2019 04:53:37 -0800 Subject: [PATCH] Added instruction to add RecordLeakService in manifest (#360) Summary: Missing instructions to add RecordLeakService in manifest, missing this will crash the app. Pull Request resolved: https://github.com/facebook/flipper/pull/360 Differential Revision: D13817454 Pulled By: passy fbshipit-source-id: 5466ba1117510ffe0b2033b6b0913125fda08983 --- docs/leak-canary-plugin.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/leak-canary-plugin.md b/docs/leak-canary-plugin.md index ede27ffef..23991da5f 100644 --- a/docs/leak-canary-plugin.md +++ b/docs/leak-canary-plugin.md @@ -37,6 +37,13 @@ RefWatcher refWatcher = LeakCanary.refWatcher(this) .buildAndInstall(); ``` + +Then, add the `RecordLeakService` in your debug variant AndroidManifest.xml. + +```xml + +``` + ## Usage Leaks detected by LeakCanary will appear automatically in Flipper. Each leak will display a hierarchy of objects, beginning from the garbage collector root and ending at the leaked class.