Move flipper plugin from flipper-lib types to flipper-common
Summary: Moved all types related to plugin descriptions from plugin-lib (which handles downloads and such) to flipper-common. The goal of that is to remove all plugin-lib usage from ui-core to server-core, so that the UI itself doesn't do any file operations anymore related to plugins. That will be done in next diffs, this just moves types but no code. Reviewed By: nikoant, aigoncharov Differential Revision: D32665064 fbshipit-source-id: 86d908e7264569b0229b09290a891171876c8e00
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2bf8ae2364
commit
e7f841b6d2
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {PluginDetails} from 'flipper-plugin-lib';
|
||||
import {PluginDetails} from 'flipper-common';
|
||||
import semver from 'semver';
|
||||
import {getRenderHostInstance} from '../RenderHost';
|
||||
import {getAppVersion} from './info';
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {ConcretePluginDetails} from 'flipper-plugin-lib';
|
||||
import {ConcretePluginDetails} from 'flipper-common';
|
||||
import semver from 'semver';
|
||||
import isPluginCompatible from './isPluginCompatible';
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@ import fs from 'fs-extra';
|
||||
import {
|
||||
getSourcePlugins,
|
||||
moveInstalledPluginsFromLegacyDir,
|
||||
InstalledPluginDetails,
|
||||
getAllInstalledPluginVersions,
|
||||
getAllInstalledPluginsInDir,
|
||||
} from 'flipper-plugin-lib';
|
||||
import {InstalledPluginDetails} from 'flipper-common';
|
||||
import {getStaticPath} from '../utils/pathUtils';
|
||||
|
||||
// Load "dynamic" plugins, e.g. those which are either pre-installed (default), installed or loaded from sources (for development).
|
||||
|
||||
@@ -17,7 +17,7 @@ import type {
|
||||
BundledPluginDetails,
|
||||
DownloadablePluginDetails,
|
||||
PluginDetails,
|
||||
} from 'flipper-plugin-lib';
|
||||
} from 'flipper-common';
|
||||
import {getLatestCompatibleVersionOfEachPlugin} from '../dispatcher/plugins';
|
||||
import {getPluginKey} from './pluginKey';
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import {
|
||||
ActivatablePluginDetails,
|
||||
DownloadablePluginDetails,
|
||||
} from 'flipper-plugin-lib';
|
||||
} from 'flipper-common';
|
||||
|
||||
export function createMockDownloadablePluginDetails(
|
||||
params: {
|
||||
|
||||
Reference in New Issue
Block a user