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
26 lines
829 B
Markdown
26 lines
829 B
Markdown
---
|
|
id: sandbox-plugin
|
|
title: 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
|
|
|
|
```java
|
|
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
|