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:
committed by
Facebook Github Bot
parent
b8dbbb0313
commit
e558d8a01a
@@ -37,6 +37,13 @@ RefWatcher refWatcher = LeakCanary.refWatcher(this)
|
|||||||
.buildAndInstall();
|
.buildAndInstall();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Then, add the `RecordLeakService` in your debug variant AndroidManifest.xml.
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<service android:name="com.facebook.flipper.plugins.leakcanary.RecordLeakService" />
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## 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.
|
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.
|
||||||
|
|||||||
Reference in New Issue
Block a user