Summary: This diff moves a lot of stuff from the client to the server. This diff is fairly large, as a lot of concept closely relate, although some things have split off to the earlier diffs in the stack, or are still to follow (like making intern requests). This diff primarily moves reading and storing settings and GKs from client to server (both flipper and launcher settings). This means that settings are no longer persisted by Redux (which only exists on client). Most other changes are fallout from that. For now settings are just one big object, although we might need to separate settings that are only make sense in an Electron context. For example launcher settings. Reviewed By: passy, aigoncharov Differential Revision: D32498649 fbshipit-source-id: d842faf7a7f03774b621c7656e53a9127afc6192
28 lines
813 B
TypeScript
28 lines
813 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 {FlipperServerImpl} from './FlipperServerImpl';
|
|
export {loadSettings} from './utils/settings';
|
|
export {loadLauncherSettings} from './utils/launcherSettings';
|
|
export {loadProcessConfig} from './utils/processConfig';
|
|
|
|
import GKImplementation from './fb-stubs/GK';
|
|
export {setupPrefetcher} from './fb-stubs/Prefetcher';
|
|
|
|
let loaded = false;
|
|
|
|
export function getGatekeepers(): Record<string, boolean> {
|
|
if (!loaded) {
|
|
// this starts fetching gatekeepers, note that they will only be available on next restart!
|
|
GKImplementation.init();
|
|
loaded = true;
|
|
}
|
|
return GKImplementation.allGKs();
|
|
}
|