Files
flipper/desktop/plugins/kaios-allocations/index.tsx
Chaiwat Ekkaewnumchai 288feafb25 Move Static Fields to package.json: kaios-allocations
Summary:
Flipper reads metadata to show on the sidebar from `package.json` and static fields (`id`, `title`, and `icon`) from `FlipperPlugin` class. If there are fields declared in both file, `FlipperPlugin` class takes precedences.

With Sandy (new Flipper plugin API), there is no static field available. In order to prevent unexpected scenario happening when migrating to Sandy, this codemod-ish is applied to plugins that contain static field.

The static fields are merged into `package.json` to get the same result. In addition, the static fields are also removed.

Reviewed By: eleweek

Differential Revision: D22411839

fbshipit-source-id: efce530bb25def9a10ba8d85c48b31ee8657daa7
2020-07-08 03:14:17 -07:00

12 KiB