From e58961e18493c5bf834c28178df17bd0d7f15a79 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Mon, 15 Oct 2018 03:10:04 -0700 Subject: [PATCH] Use compileOnly dependency (#294) Summary: Fixes #293. Pull Request resolved: https://github.com/facebook/flipper/pull/294 Reviewed By: danielbuechele Differential Revision: D10367678 Pulled By: passy fbshipit-source-id: 69ccdc470b20d5d43e1bb3c1eb4e52c2e01debb5 --- android/build.gradle | 2 +- docs/leak-canary-plugin.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 8dbe2cac5..6c9ff14fa 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -53,7 +53,7 @@ android { implementation deps.lithoCore implementation deps.lithoWidget implementation deps.rhino - implementation deps.leakcanary + compileOnly deps.leakcanary testImplementation deps.mockito testImplementation deps.robolectric diff --git a/docs/leak-canary-plugin.md b/docs/leak-canary-plugin.md index 107b90c48..ede27ffef 100644 --- a/docs/leak-canary-plugin.md +++ b/docs/leak-canary-plugin.md @@ -9,6 +9,16 @@ The LeakCanary plugin provides developers with Flipper support for [LeakCanary]( Note: this plugin is only available for Android. +Ensure that you already have an explicit dependency in your application's +`build.gradle`, e.g. + +```groovy +dependencies { + debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1' + releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1' +} +``` + ### Android First, add the plugin to your Flipper client instance: