Files
flipper/docs/sandbox-plugin.md
Justin Tuchek 2c6d126f05 Update sonar references in sandbox plugin docs (#349)
Summary:
Was experimenting with Flipper for the first time - while copying snippets over realized the classes don't exist anymore. Just wanted to contribute.

Update class names and import paths for sandbox plugin snippet.
Pull Request resolved: https://github.com/facebook/flipper/pull/349

Differential Revision: D13590256

Pulled By: passy

fbshipit-source-id: f6802276d40d7a76e15b5aad7bb86cda34c85e12
2019-01-07 08:52:12 -08:00

829 B

id, title
id title
sandbox-plugin Sandbox

The Sandbox plugin is useful for developers that had to test changes of their apps by pointing them to some Sandbox environment. Through this plugin and a few lines of code in the client, the app can get a callback and get the value that the user has input through Flipper. At this point, the developer can plugin its logic to save this setting in its app.

Setup

To use the sandbox plugin, you need to add the plugin to your Flipper client instance.

Android

import com.facebook.flipper.plugins.sandbox.SandboxFlipperPlugin;
import com.facebook.flipper.plugins.sandbox.SandboxFlipperPluginStrategy;

final SandboxFlipperPluginStrategy strategy = getStrategy(); // Your strategy goes here
client.addPlugin(new SandboxFlipperPlugin(strategy));

iOS

Coming soon