From 00a7cd9f60bee51b96ca07346a60f9add7e71e92 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 1 May 2019 08:32:58 -0700 Subject: [PATCH] Document no-op package Summary: Package is still in the process of getting approved by JCenter but should get included within the next 24h or so. Reviewed By: jknoxville Differential Revision: D15149587 fbshipit-source-id: ab835b1fff23aedbc312b495b79e85e0fffa16ed --- docs/getting-started.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/getting-started.md b/docs/getting-started.md index e9f2c1c9e..28cc35a20 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -41,6 +41,9 @@ You should also explicitly depend on [`soloader`](https://github.com/facebook/so instead of relying on transitive dependency resolution which is getting deprecated with Gradle 5. +We provide a "no-op" implementation of some oft-used Flipper interfaces you can +use to make it easier to strip Flipper from your release builds. + ```groovy repositories { jcenter() @@ -49,6 +52,8 @@ repositories { dependencies { debugImplementation 'com.facebook.flipper:flipper:0.20.0' debugImplementation 'com.facebook.soloader:soloader:0.5.1' + + releaseImplementation 'com.facebook.flipper:flipper-noop:0.20.0' } ``` @@ -87,6 +92,8 @@ repositories { dependencies { debugImplementation 'com.facebook.flipper:flipper:0.20.1-SNAPSHOT' debugImplementation 'com.facebook.soloader:soloader:0.5.1' + + releaseImplementation 'com.facebook.flipper:flipper-noop:0.20.1-SNAPSHOT' } ```