Use the same create-plugin tutorial for FB and non-FB users

Summary: Per title

Reviewed By: passy

Differential Revision: D25558871

fbshipit-source-id: 85fbc73143a5ca172115169d08f8cdce502eb833
This commit is contained in:
Michel Weststrate
2020-12-15 12:32:42 -08:00
committed by Facebook GitHub Bot
parent c14bab3677
commit f9c8826090
7 changed files with 84 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ id: android
title: Building an Android Plugin
---
import useBaseUrl from '@docusaurus/useBaseUrl';
import {FbInternalOnly} from 'internaldocs-fb-helpers';
<img alt="Android Tutorial App" src={useBaseUrl("img/android-tutorial-app.png")} />
@@ -22,6 +23,12 @@ https://github.com/facebook/flipper/tree/7dae5771d96ea76b75796d3b3a2c78746e581e3
## Creating a Plugin
<FbInternalOnly>
<div class="warning">
[FB-Only] Depending the options selected during scaffolding (see intro), some of the following code might already have been generated by `scarf`.
</div>
</FbInternalOnly>
On Android, a Flipper plugin is a class that implements the
[`FlipperPlugin`](https://github.com/facebook/flipper/blob/master/android/src/main/java/com/facebook/flipper/core/FlipperPlugin.java)
interface.