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
This commit is contained in:
Riyaz Mohammed Ibrahim
2019-01-25 04:53:37 -08:00
committed by Facebook Github Bot
parent b8dbbb0313
commit e558d8a01a

View File

@@ -37,6 +37,13 @@ RefWatcher refWatcher = LeakCanary.refWatcher(this)
.buildAndInstall();
```
Then, add the `RecordLeakService` in your debug variant AndroidManifest.xml.
```xml
<service android:name="com.facebook.flipper.plugins.leakcanary.RecordLeakService" />
```
## 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.