Install plugins to pending directory first to enable installing new versions of existing plugins
Summary: Install plugins to pending directory first to enable installing new versions of existing plugins. On startup Flipper moves all the plugins from pending directory into installed plugins directory. Auto-update, after downloading a plugin package, will also extract it to "pending", so after restart update will automatically be applied. Reviewed By: mweststrate Differential Revision: D21929713 fbshipit-source-id: 141b106415e941156ae598cf810ab3bed8c76ced
This commit is contained in:
committed by
Facebook GitHub Bot
parent
eff378defa
commit
eeded4e32f
@@ -10,10 +10,10 @@
|
||||
import {Store} from '../reducers/index';
|
||||
import {Logger} from '../fb-interfaces/Logger';
|
||||
import {registerInstalledPlugins} from '../reducers/pluginManager';
|
||||
import {readInstalledPlugins} from 'flipper-plugin-lib';
|
||||
import {getPendingAndInstalledPlugins} from 'flipper-plugin-lib';
|
||||
|
||||
function refreshInstalledPlugins(store: Store) {
|
||||
readInstalledPlugins().then((plugins) =>
|
||||
getPendingAndInstalledPlugins().then((plugins) =>
|
||||
store.dispatch(registerInstalledPlugins(plugins)),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user