add adbkit configurations settings

Summary: Adbkit configurations settings may be neccesary when we want to run flipper-server in an IPv6 stack machine as localhost would bind to [::1] rather than 127.0.0.1 which is where the adb server usually runs

Reviewed By: mweststrate

Differential Revision: D34964851

fbshipit-source-id: 9cf70f9bdc0c40e92382b1537013439f85983f65
This commit is contained in:
Andres Orozco Gonzalez
2022-03-23 04:24:23 -07:00
committed by Facebook GitHub Bot
parent 7f68a4d673
commit 83133618d6
4 changed files with 62 additions and 2 deletions

View File

@@ -45,6 +45,19 @@ export type Settings = {
enablePluginMarketplace: boolean;
marketplaceURL: string;
enablePluginMarketplaceAutoUpdate: boolean;
/**
* Adbkit settings are needed because localhost can resolve to
* 127.0.0.1 or [::1] depending on the machine (IPV4 or IPV6)
* this unknown behaviour of which address will be used by the
* adbkit may cause it not to connect to the correct address where the
* adb server is running. Notice that using the env variable ADB_SERVER_SOCKET
* set to tcp:127.0.0.1:5037 would make the adb start-server fail and so
* cannot be used as a solution.
*/
adbKitSettings?: {
host?: string;
port?: number;
};
};
export enum ReleaseChannel {