Fix emulator launching on Linux

Summary:
The Android SDK installation on Linux is really dumb. The emulator binary
is dynamically linked and ships with some `.so`s that need to be either in `LD_LIBRARY_PATH` or `$CWD`.
For some reason, there's no script, so you have to manually `cd` into the directory in order to
run it. ¯\_(ツ)_/¯

Reviewed By: jknoxville

Differential Revision: D13589660

fbshipit-source-id: e3bdd7468108f1fb1e52f23ae45e21cacc5480f9
This commit is contained in:
Pascal Hartig
2019-01-07 07:44:56 -08:00
committed by Facebook Github Bot
parent 5173b22760
commit 7471dc6481
4 changed files with 32 additions and 8 deletions

13
flow-typed/npm/which_v1.x.x.js vendored Normal file
View File

@@ -0,0 +1,13 @@
declare module "which" {
declare type Options = {|path?: string, pathExt?: string, all?: boolean|};
declare function whichAsync(cmd: string, cb: (err: ?Error, path: string) => void): void;
declare function whichAsync(cmd: string, options: Options, cb: (err: ?Error, path: string) => void): void;
declare function whichSync(cmd: string, options?: Options): string;
declare function whichSync(cmd: string, options: {|...Options, noThrow?: false|}): string;
declare function whichSync(cmd: string, options: {|...Options, noThrow: true|}): ?string;
declare module.exports: {
[[call]]: typeof whichAsync,
sync: typeof whichSync
}
}