From e07de9ef43a13fb78875f9000fc87ca0684e7240 Mon Sep 17 00:00:00 2001 From: Kevin Strider Date: Fri, 13 May 2022 03:28:35 -0700 Subject: [PATCH] setup.mdx (setup - LeakCanary) Summary: Restyle of page, including changes to spelling, grammar, links, and structure (where relevant). Reviewed By: passy Differential Revision: D36344933 fbshipit-source-id: 87fe56d24b0591b471b4f36c2dda5bb989db7e5c --- desktop/plugins/public/leak_canary/docs/setup.mdx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/desktop/plugins/public/leak_canary/docs/setup.mdx b/desktop/plugins/public/leak_canary/docs/setup.mdx index dcf1198c5..741b8cfd9 100644 --- a/desktop/plugins/public/leak_canary/docs/setup.mdx +++ b/desktop/plugins/public/leak_canary/docs/setup.mdx @@ -1,5 +1,10 @@ -Ensure that you already have an explicit dependency in your application's -`build.gradle` including the plugin dependency, e.g. + +import useBaseUrl from '@docusaurus/useBaseUrl'; +import Link from '@docusaurus/Link'; + +To setup the Leak Canary plugin, take the following steps: + +1. Ensure that you have an explicit dependency in your application's `build.gradle` including the plugin dependency, such as is shown in the following snippet: ```groovy dependencies { @@ -8,7 +13,7 @@ dependencies { } ``` -Update your the `onCreate` method in you `Application` to add the LeakCanary2 plugin to Flipper and the Flipper listener to LeakCanary +2. Update your the `onCreate` method in you `Application` to add the LeakCanary2 plugin to Flipper and the Flipper listener to LeakCanary: ```kt import com.facebook.flipper.plugins.leakcanary2.FlipperLeakListener @@ -38,5 +43,3 @@ import com.facebook.flipper.plugins.leakcanary2.LeakCanary2FlipperPlugin } } ``` - -That's it!