We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1939d8a commit 74732f9Copy full SHA for 74732f9
packages/skills/lynx-devtool/src/index.ts
@@ -10,8 +10,17 @@ import {
10
} from '@lynx-js/devtool-connector/transport';
11
import { createProgram } from './devtool.ts';
12
13
+function getAndroidTransportSpec(): { host: string; port: number } {
14
+ const port = Number.parseInt(process.env['ADB_SERVER_PORT'] ?? '5037', 10);
15
+
16
+ return {
17
+ host: process.env['ADB_SERVER_HOST'] ?? '127.0.0.1',
18
+ port: Number.isInteger(port) && port > 0 ? port : 5037,
19
+ };
20
+}
21
22
const transports: Transport[] = [
- new AndroidTransport(),
23
+ new AndroidTransport(getAndroidTransportSpec()),
24
new DesktopTransport(),
25
new iOSTransport(),
26
];
0 commit comments