From 21ce694fd59a599928b14fa3c40da6198219d449 Mon Sep 17 00:00:00 2001 From: Anton Nikolaev Date: Tue, 11 May 2021 17:02:24 -0700 Subject: [PATCH] Retrieve multiple plugin versions from marketplace Summary: Retrieve multiple plugin versions so we later can choose a version which is compatible with the current version of Flipper (e.g. if user is on old version of Flipper). Reviewed By: passy Differential Revision: D28284121 fbshipit-source-id: 3ed9cffb3e9702fc65d19b73fc8cc162b776b7c9 --- desktop/app/src/reducers/plugins.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desktop/app/src/reducers/plugins.tsx b/desktop/app/src/reducers/plugins.tsx index e564d9890..4a60436ac 100644 --- a/desktop/app/src/reducers/plugins.tsx +++ b/desktop/app/src/reducers/plugins.tsx @@ -23,6 +23,10 @@ import produce from 'immer'; import {isDevicePluginDefinition} from '../utils/pluginUtils'; import semver from 'semver'; +export interface MarketplacePluginDetails extends DownloadablePluginDetails { + availableVersions?: DownloadablePluginDetails[]; +} + export type State = { devicePlugins: DevicePluginMap; clientPlugins: ClientPluginMap; @@ -32,7 +36,7 @@ export type State = { disabledPlugins: Array; failedPlugins: Array<[ActivatablePluginDetails, string]>; selectedPlugins: Array; - marketplacePlugins: Array; + marketplacePlugins: Array; uninstalledPlugins: Set; installedPlugins: Map; };