Summary: To know whether plugins should be mounted with the old setup or new setup (with a Provided / context based api), we need to be able to recognize whether a plugin is written with the old or new setup. We do this by checking if the flipper-plugin dependency is declared as peer dependency. This we can to check for SDK compatibility as well. Reviewed By: jknoxville Differential Revision: D22043085 fbshipit-source-id: 21afabb6e58d86253a464470f4690c51cced87ab
31 lines
593 B
TypeScript
31 lines
593 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
export default interface PluginDetails {
|
|
dir: string;
|
|
name: string;
|
|
specVersion: number;
|
|
version: string;
|
|
source: string;
|
|
main: string;
|
|
id: string;
|
|
isDefault: boolean;
|
|
entry: string;
|
|
gatekeeper?: string;
|
|
title: string;
|
|
icon?: string;
|
|
description?: string;
|
|
category?: string;
|
|
bugs?: {
|
|
email?: string;
|
|
url?: string;
|
|
};
|
|
flipperSDKVersion?: string;
|
|
}
|