Add command to fetch new Flipper version
Summary: It is a copy-paste of what we have in jest-e2e Reviewed By: passy Differential Revision: D51527040 fbshipit-source-id: 36b62edee006580023e9ce2cd309dddfd0dbce84
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4477f3b550
commit
685a0e53d7
@@ -384,6 +384,7 @@ export type FlipperServerCommands = {
|
|||||||
'is-logged-in': () => Promise<boolean>;
|
'is-logged-in': () => Promise<boolean>;
|
||||||
'environment-info': () => Promise<EnvironmentInfo>;
|
'environment-info': () => Promise<EnvironmentInfo>;
|
||||||
'move-pwa': () => Promise<void>;
|
'move-pwa': () => Promise<void>;
|
||||||
|
'fetch-new-version': (version: string) => Promise<void>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GraphResponse = {
|
export type GraphResponse = {
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ import {jfUpload} from './fb-stubs/jf';
|
|||||||
import path from 'path';
|
import path from 'path';
|
||||||
import {movePWA} from './utils/findInstallation';
|
import {movePWA} from './utils/findInstallation';
|
||||||
import GK from './fb-stubs/GK';
|
import GK from './fb-stubs/GK';
|
||||||
|
import {fetchNewVersion} from './fb-stubs/fetchNewVersion';
|
||||||
|
|
||||||
const {access, copyFile, mkdir, unlink, stat, readlink, readFile, writeFile} =
|
const {access, copyFile, mkdir, unlink, stat, readlink, readFile, writeFile} =
|
||||||
promises;
|
promises;
|
||||||
@@ -632,6 +633,7 @@ export class FlipperServerImpl implements FlipperServer {
|
|||||||
'move-pwa': async () => {
|
'move-pwa': async () => {
|
||||||
await movePWA();
|
await movePWA();
|
||||||
},
|
},
|
||||||
|
'fetch-new-version': fetchNewVersion,
|
||||||
};
|
};
|
||||||
|
|
||||||
registerDevice(device: ServerDevice) {
|
registerDevice(device: ServerDevice) {
|
||||||
|
|||||||
10
desktop/flipper-server-core/src/fb-stubs/fetchNewVersion.tsx
Normal file
10
desktop/flipper-server-core/src/fb-stubs/fetchNewVersion.tsx
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) Meta Platforms, Inc. and 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 const fetchNewVersion = async (): Promise<void> => {};
|
||||||
Reference in New Issue
Block a user