|
1 | | -import * as path from "path"; |
2 | 1 | import * as net from "net"; |
3 | 2 | import Future = require("fibers/future"); |
4 | 3 | import { sleep } from "../common/helpers"; |
5 | 4 | import {ChildProcess} from "child_process"; |
6 | 5 |
|
7 | 6 | class AndroidDebugService implements IDebugService { |
8 | | - private static DEFAULT_NODE_INSPECTOR_URL = "http://127.0.0.1:8080/debug"; |
9 | | - |
10 | 7 | private _device: Mobile.IAndroidDevice = null; |
11 | 8 | private _debuggerClientProcess: ChildProcess; |
12 | 9 |
|
@@ -161,7 +158,6 @@ class AndroidDebugService implements IDebugService { |
161 | 158 | if (this.$options.client) { |
162 | 159 | let port = this.getForwardedLocalDebugPortForPackageName(deviceId, packageName).wait(); |
163 | 160 | this.startDebuggerClient(port).wait(); |
164 | | - //this.openDebuggerClient(AndroidDebugService.DEFAULT_NODE_INSPECTOR_URL + "?port=" + port); |
165 | 161 | } |
166 | 162 | }).future<void>()(); |
167 | 163 | } |
@@ -256,20 +252,5 @@ class AndroidDebugService implements IDebugService { |
256 | 252 | } |
257 | 253 | } |
258 | 254 |
|
259 | | - private openDebuggerClient(url: string): void { |
260 | | - let defaultDebugUI = "chrome"; |
261 | | - if (this.$hostInfo.isDarwin) { |
262 | | - defaultDebugUI = "Google Chrome"; |
263 | | - } |
264 | | - if (this.$hostInfo.isLinux) { |
265 | | - defaultDebugUI = "google-chrome"; |
266 | | - } |
267 | | - |
268 | | - let debugUI = this.$config.ANDROID_DEBUG_UI || defaultDebugUI; |
269 | | - let child = this.$opener.open(url, debugUI); |
270 | | - if (!child) { |
271 | | - this.$errors.failWithoutHelp(`Unable to open ${debugUI}.`); |
272 | | - } |
273 | | - } |
274 | 255 | } |
275 | 256 | $injector.register("androidDebugService", AndroidDebugService); |
0 commit comments