diff --git a/package-lock.json b/package-lock.json index 96d37ee8..2a50cc62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.8.1-dev", "license": "MIT", "dependencies": { - "@devicefarmer/adbkit": "^2.11.3", + "@dead50f7/adbkit": "^2.11.4", "express": "^4.17.3", "ios-device-lib": "^0.9.2", "node-mjpeg-proxy": "^0.3.2", @@ -110,18 +110,19 @@ "node": ">=0.1.90" } }, - "node_modules/@devicefarmer/adbkit": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit/-/adbkit-2.11.3.tgz", - "integrity": "sha512-rsgWREAvSRQjdP9/3GoAV6Tq+o97haywgbTfCgt5yUqiDpaaq3hlH9FTo9XsdG8x+Jd0VQ9nTC2IXsDu8JGRSA==", + "node_modules/@dead50f7/adbkit": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@dead50f7/adbkit/-/adbkit-2.11.4.tgz", + "integrity": "sha512-ffHIxK3vLuysWr0vbrOT3bMv3euYyVkZDV4ZfU/6QhIRmjy0iRypb+CmSbMdB8GXrNEpkaGKRm2Jxizh+jawkQ==", "dependencies": { - "@devicefarmer/adbkit-logcat": "^1.1.0", - "@devicefarmer/adbkit-monkey": "~1.0.1", + "@devicefarmer/adbkit-logcat": "^2.1.1", + "@devicefarmer/adbkit-monkey": "^1.2.0", + "@types/bluebird": "^2.0.33", + "@types/node-forge": "^0.9.5", "bluebird": "~2.9.24", - "commander": "^2.3.0", - "debug": "~2.6.3", - "node-forge": "^0.10.0", - "split": "~0.3.3" + "commander": "^9.1.0", + "debug": "^4.3.4", + "node-forge": "^1.3.0" }, "bin": { "adbkit": "bin/adbkit" @@ -130,21 +131,60 @@ "node": ">= 0.10.4" } }, - "node_modules/@devicefarmer/adbkit-logcat": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-logcat/-/adbkit-logcat-1.1.0.tgz", - "integrity": "sha512-K90P5gUXM/w+yzLvJIRQ+tJooNU6ipUPPQkljtPJ0laR66TGtpt4Gqsjm0n9dPHK1W5KGgU1R5wnCd6RTSlPNA==", + "node_modules/@dead50f7/adbkit/node_modules/@types/bluebird": { + "version": "2.0.34", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-2.0.34.tgz", + "integrity": "sha512-eTFnevQFXsbaXqKKShQ9MK38KNwtcz5OZnIEgFSEk5pT2/Occ9c8OKIgrWGArL5jpNg3XFdzrEtoLxsAEQ8IZQ==" + }, + "node_modules/@dead50f7/adbkit/node_modules/@types/node-forge": { + "version": "0.9.10", + "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-0.9.10.tgz", + "integrity": "sha512-+BbPlhZeYs/WETWftQi2LeRx9VviWSwawNo+Pid5qNrSZHb60loYjpph3OrbwXMMseadu9rE9NeK34r4BHT+QQ==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@dead50f7/adbkit/node_modules/commander": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz", + "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==", "engines": { - "node": ">= 0.10.4" + "node": "^12.20.0 || >=14" } }, - "node_modules/@devicefarmer/adbkit-monkey": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-monkey/-/adbkit-monkey-1.0.1.tgz", - "integrity": "sha512-HilPrVrCosYWqSyjfpDtaaN1kJwdlBpS+IAflP3z+e7nsEgk3JGJf1Vg0NgHJooTf5HDfXSyZqMVg+5jvXCK0g==", + "node_modules/@dead50f7/adbkit/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { - "async": "~0.2.9" + "ms": "2.1.2" }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@dead50f7/adbkit/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/@devicefarmer/adbkit-logcat": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-logcat/-/adbkit-logcat-2.1.2.tgz", + "integrity": "sha512-G4grpEa5s9s9wCRs8YB9LjFSnz0Os3g3RYIwZSxH3JFfV3aejL5xlu4hHMH4JY+d4oCCwImcEZJcFPY9BEP21w==", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@devicefarmer/adbkit-monkey": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-monkey/-/adbkit-monkey-1.2.1.tgz", + "integrity": "sha512-ZzZY/b66W2Jd6NHbAhLyDWOEIBWC11VizGFk7Wx7M61JZRz7HR9Cq5P+65RKWUU7u6wgsE8Lmh9nE4Mz+U2eTg==", "engines": { "node": ">= 0.10.4" } @@ -1026,8 +1066,7 @@ "node_modules/@types/node": { "version": "12.20.55", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", - "devOptional": true + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" }, "node_modules/@types/node-forge": { "version": "0.10.10", @@ -2253,11 +2292,6 @@ "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", "dev": true }, - "node_modules/async": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", - "integrity": "sha512-eAkdoKxU6/LkKDBzLpT+t6Ff5EtfSF4wx1WfJiPEEV7WNLnDaRXk0oVysiEPm262roaachGexwUv94WhSgN5TQ==" - }, "node_modules/async-lock": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/async-lock/-/async-lock-1.3.2.tgz", @@ -2854,7 +2888,8 @@ "node_modules/commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "node_modules/compress-brotli": { "version": "1.3.8", @@ -5763,11 +5798,11 @@ } }, "node_modules/node-forge": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", - "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", "engines": { - "node": ">= 6.0.0" + "node": ">= 6.13.0" } }, "node_modules/node-mjpeg-proxy": { @@ -7300,17 +7335,6 @@ "source-map": "^0.6.0" } }, - "node_modules/split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==", - "dependencies": { - "through": "2" - }, - "engines": { - "node": "*" - } - }, "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -7594,7 +7618,8 @@ "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "optional": true }, "node_modules/timm": { "version": "1.7.1", @@ -8489,32 +8514,63 @@ "integrity": "sha512-KmK/gXUdSvELjFUUnfCfkNqGZVlJvkZqXhjicGR4XvQKPgWsXFsRArBCW07Zj2UQUD6lsqru5ai/kk3KCgtxpA==", "optional": true }, - "@devicefarmer/adbkit": { - "version": "2.11.3", - "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit/-/adbkit-2.11.3.tgz", - "integrity": "sha512-rsgWREAvSRQjdP9/3GoAV6Tq+o97haywgbTfCgt5yUqiDpaaq3hlH9FTo9XsdG8x+Jd0VQ9nTC2IXsDu8JGRSA==", + "@dead50f7/adbkit": { + "version": "2.11.4", + "resolved": "https://registry.npmjs.org/@dead50f7/adbkit/-/adbkit-2.11.4.tgz", + "integrity": "sha512-ffHIxK3vLuysWr0vbrOT3bMv3euYyVkZDV4ZfU/6QhIRmjy0iRypb+CmSbMdB8GXrNEpkaGKRm2Jxizh+jawkQ==", "requires": { - "@devicefarmer/adbkit-logcat": "^1.1.0", - "@devicefarmer/adbkit-monkey": "~1.0.1", + "@devicefarmer/adbkit-logcat": "^2.1.1", + "@devicefarmer/adbkit-monkey": "^1.2.0", + "@types/bluebird": "^2.0.33", + "@types/node-forge": "^0.9.5", "bluebird": "~2.9.24", - "commander": "^2.3.0", - "debug": "~2.6.3", - "node-forge": "^0.10.0", - "split": "~0.3.3" + "commander": "^9.1.0", + "debug": "^4.3.4", + "node-forge": "^1.3.0" + }, + "dependencies": { + "@types/bluebird": { + "version": "2.0.34", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-2.0.34.tgz", + "integrity": "sha512-eTFnevQFXsbaXqKKShQ9MK38KNwtcz5OZnIEgFSEk5pT2/Occ9c8OKIgrWGArL5jpNg3XFdzrEtoLxsAEQ8IZQ==" + }, + "@types/node-forge": { + "version": "0.9.10", + "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-0.9.10.tgz", + "integrity": "sha512-+BbPlhZeYs/WETWftQi2LeRx9VviWSwawNo+Pid5qNrSZHb60loYjpph3OrbwXMMseadu9rE9NeK34r4BHT+QQ==", + "requires": { + "@types/node": "*" + } + }, + "commander": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-9.4.0.tgz", + "integrity": "sha512-sRPT+umqkz90UA8M1yqYfnHlZA7fF6nSphDtxeywPZ49ysjxDQybzk13CL+mXekDRG92skbcqCLVovuCusNmFw==" + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + } } }, "@devicefarmer/adbkit-logcat": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-logcat/-/adbkit-logcat-1.1.0.tgz", - "integrity": "sha512-K90P5gUXM/w+yzLvJIRQ+tJooNU6ipUPPQkljtPJ0laR66TGtpt4Gqsjm0n9dPHK1W5KGgU1R5wnCd6RTSlPNA==" + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-logcat/-/adbkit-logcat-2.1.2.tgz", + "integrity": "sha512-G4grpEa5s9s9wCRs8YB9LjFSnz0Os3g3RYIwZSxH3JFfV3aejL5xlu4hHMH4JY+d4oCCwImcEZJcFPY9BEP21w==" }, "@devicefarmer/adbkit-monkey": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-monkey/-/adbkit-monkey-1.0.1.tgz", - "integrity": "sha512-HilPrVrCosYWqSyjfpDtaaN1kJwdlBpS+IAflP3z+e7nsEgk3JGJf1Vg0NgHJooTf5HDfXSyZqMVg+5jvXCK0g==", - "requires": { - "async": "~0.2.9" - } + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@devicefarmer/adbkit-monkey/-/adbkit-monkey-1.2.1.tgz", + "integrity": "sha512-ZzZY/b66W2Jd6NHbAhLyDWOEIBWC11VizGFk7Wx7M61JZRz7HR9Cq5P+65RKWUU7u6wgsE8Lmh9nE4Mz+U2eTg==" }, "@discoveryjs/json-ext": { "version": "0.5.7", @@ -9225,8 +9281,7 @@ "@types/node": { "version": "12.20.55", "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", - "devOptional": true + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" }, "@types/node-forge": { "version": "0.10.10", @@ -10236,11 +10291,6 @@ "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", "dev": true }, - "async": { - "version": "0.2.10", - "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", - "integrity": "sha512-eAkdoKxU6/LkKDBzLpT+t6Ff5EtfSF4wx1WfJiPEEV7WNLnDaRXk0oVysiEPm262roaachGexwUv94WhSgN5TQ==" - }, "async-lock": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/async-lock/-/async-lock-1.3.2.tgz", @@ -10679,7 +10729,8 @@ "commander": { "version": "2.20.3", "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true }, "compress-brotli": { "version": "1.3.8", @@ -12932,9 +12983,9 @@ } }, "node-forge": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", - "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==" }, "node-mjpeg-proxy": { "version": "0.3.2", @@ -14121,14 +14172,6 @@ "source-map": "^0.6.0" } }, - "split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==", - "requires": { - "through": "2" - } - }, "statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -14339,7 +14382,8 @@ "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" + "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", + "optional": true }, "timm": { "version": "1.7.1", diff --git a/package.json b/package.json index 784de257..ed695642 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "author": "Sergey Volkov ", "license": "MIT", "dependencies": { - "@devicefarmer/adbkit": "^2.11.3", + "@dead50f7/adbkit": "^2.11.4", "express": "^4.17.3", "ios-device-lib": "^0.9.2", "node-mjpeg-proxy": "^0.3.2", diff --git a/src/app/applDevice/client/WdaProxyClient.ts b/src/app/applDevice/client/WdaProxyClient.ts index 6ae068fd..34c675e5 100644 --- a/src/app/applDevice/client/WdaProxyClient.ts +++ b/src/app/applDevice/client/WdaProxyClient.ts @@ -85,7 +85,7 @@ export class WdaProxyClient private commands: string[] = []; private hasSession = false; private messageId = 0; - private wait: Map void; reject: () => void }> = new Map(); + private wait: Map void; reject: (error: any) => void }> = new Map(); constructor(params: ParamsWdaProxy) { super(params); diff --git a/src/app/googDevice/client/FileListingClient.ts b/src/app/googDevice/client/FileListingClient.ts index af5db34d..fe4731ed 100644 --- a/src/app/googDevice/client/FileListingClient.ts +++ b/src/app/googDevice/client/FileListingClient.ts @@ -6,7 +6,7 @@ import { BaseDeviceTracker } from '../../client/BaseDeviceTracker'; import { ACTION } from '../../../common/Action'; import { ParamsDeviceTracker } from '../../../types/ParamsDeviceTracker'; import Util from '../../Util'; -import Protocol from '@devicefarmer/adbkit/lib/adb/protocol'; +import Protocol from '@dead50f7/adbkit/lib/adb/protocol'; import { Entry } from '../Entry'; import { html } from '../../ui/HtmlTag'; import * as path from 'path'; diff --git a/src/app/googDevice/filePush/AdbkitFilePushStream.ts b/src/app/googDevice/filePush/AdbkitFilePushStream.ts index fb4852f6..43c688f6 100644 --- a/src/app/googDevice/filePush/AdbkitFilePushStream.ts +++ b/src/app/googDevice/filePush/AdbkitFilePushStream.ts @@ -2,7 +2,7 @@ import { FilePushStream } from './FilePushStream'; import { CommandControlMessage, FilePushState } from '../../controlMessage/CommandControlMessage'; import { Multiplexer } from '../../../packages/multiplexer/Multiplexer'; import { FilePushResponseStatus } from './FilePushResponseStatus'; -import Protocol from '@devicefarmer/adbkit/lib/adb/protocol'; +import Protocol from '@dead50f7/adbkit/lib/adb/protocol'; import { FileListingClient } from '../client/FileListingClient'; import * as path from 'path'; import FilePushHandler from './FilePushHandler'; diff --git a/src/server/goog-device/AdbUtils.ts b/src/server/goog-device/AdbUtils.ts index 5da42346..d4cdd209 100644 --- a/src/server/goog-device/AdbUtils.ts +++ b/src/server/goog-device/AdbUtils.ts @@ -5,15 +5,15 @@ import { ACTION } from '../../common/Action'; import { AdbExtended } from './adb'; import { DevtoolsInfo, RemoteBrowserInfo, RemoteTarget, VersionMetadata } from '../../types/RemoteDevtools'; import { URL } from 'url'; -import { Forward } from '@devicefarmer/adbkit/lib/Forward'; -import Entry from '@devicefarmer/adbkit/lib/adb/sync/entry'; -import Stats from '@devicefarmer/adbkit/lib/adb/sync/stats'; -import PullTransfer from '@devicefarmer/adbkit/lib/adb/sync/pulltransfer'; +import { Forward } from '@dead50f7/adbkit/lib/Forward'; +import Entry from '@dead50f7/adbkit/lib/adb/sync/entry'; +import Stats from '@dead50f7/adbkit/lib/adb/sync/stats'; +import PullTransfer from '@dead50f7/adbkit/lib/adb/sync/pulltransfer'; import { FileStats } from '../../types/FileStats'; -import Protocol from '@devicefarmer/adbkit/lib/adb/protocol'; +import Protocol from '@dead50f7/adbkit/lib/adb/protocol'; import { Multiplexer } from '../../packages/multiplexer/Multiplexer'; import { ReadStream } from 'fs'; -import PushTransfer from '@devicefarmer/adbkit/lib/adb/sync/pushtransfer'; +import PushTransfer from '@dead50f7/adbkit/lib/adb/sync/pushtransfer'; type IncomingMessage = { statusCode?: number; diff --git a/src/server/goog-device/Device.ts b/src/server/goog-device/Device.ts index 58362b93..027928b0 100644 --- a/src/server/goog-device/Device.ts +++ b/src/server/goog-device/Device.ts @@ -1,6 +1,6 @@ import { AdbExtended } from './adb'; -import AdbKitClient from '@devicefarmer/adbkit/lib/adb/client'; -import PushTransfer from '@devicefarmer/adbkit/lib/adb/sync/pushtransfer'; +import AdbKitClient from '@dead50f7/adbkit/lib/adb/client'; +import PushTransfer from '@dead50f7/adbkit/lib/adb/sync/pushtransfer'; import { spawn } from 'child_process'; import { NetInterface } from '../../types/NetInterface'; import { TypedEmitter } from '../../common/TypedEmitter'; diff --git a/src/server/goog-device/ScrcpyServer.ts b/src/server/goog-device/ScrcpyServer.ts index dd548513..e7a500d1 100644 --- a/src/server/goog-device/ScrcpyServer.ts +++ b/src/server/goog-device/ScrcpyServer.ts @@ -4,7 +4,7 @@ import '../../../vendor/Genymobile/scrcpy/LICENSE'; import { Device } from './Device'; import { ARGS_STRING, SERVER_PACKAGE, SERVER_PROCESS_NAME, SERVER_VERSION } from '../../common/Constants'; import path from 'path'; -import PushTransfer from '@devicefarmer/adbkit/lib/adb/sync/pushtransfer'; +import PushTransfer from '@dead50f7/adbkit/lib/adb/sync/pushtransfer'; import { ServerVersion } from './ServerVersion'; const TEMP_PATH = '/data/local/tmp/'; diff --git a/src/server/goog-device/adb/ExtendedClient.ts b/src/server/goog-device/adb/ExtendedClient.ts index b89e4e32..28be7480 100644 --- a/src/server/goog-device/adb/ExtendedClient.ts +++ b/src/server/goog-device/adb/ExtendedClient.ts @@ -1,4 +1,4 @@ -import Client from '@devicefarmer/adbkit/lib/adb/client'; +import Client from '@dead50f7/adbkit/lib/adb/client'; import { ExtendedSync } from './ExtendedSync'; import { SyncCommand } from './command/host-transport/sync'; import { Multiplexer } from '../../../packages/multiplexer/Multiplexer'; diff --git a/src/server/goog-device/adb/ExtendedSync.ts b/src/server/goog-device/adb/ExtendedSync.ts index 12930d4e..7e33b9c3 100644 --- a/src/server/goog-device/adb/ExtendedSync.ts +++ b/src/server/goog-device/adb/ExtendedSync.ts @@ -1,6 +1,6 @@ -import Connection from '@devicefarmer/adbkit/lib/adb/connection'; -import Parser from '@devicefarmer/adbkit/lib/adb/parser'; -import Protocol from '@devicefarmer/adbkit/lib/adb/protocol'; +import Connection from '@dead50f7/adbkit/lib/adb/connection'; +import Parser from '@dead50f7/adbkit/lib/adb/parser'; +import Protocol from '@dead50f7/adbkit/lib/adb/protocol'; import { Multiplexer } from '../../../packages/multiplexer/Multiplexer'; export class ExtendedSync { diff --git a/src/server/goog-device/adb/command/host-transport/sync.ts b/src/server/goog-device/adb/command/host-transport/sync.ts index 2402657f..9932b71d 100644 --- a/src/server/goog-device/adb/command/host-transport/sync.ts +++ b/src/server/goog-device/adb/command/host-transport/sync.ts @@ -1,5 +1,5 @@ -import Protocol from '@devicefarmer/adbkit/lib/adb/protocol'; -import Command from '@devicefarmer/adbkit/lib/adb/command'; +import Protocol from '@dead50f7/adbkit/lib/adb/protocol'; +import Command from '@dead50f7/adbkit/lib/adb/command'; import { ExtendedSync } from '../../ExtendedSync'; import Bluebird from 'bluebird'; diff --git a/src/server/goog-device/adb/index.ts b/src/server/goog-device/adb/index.ts index 9c757631..17a639f7 100644 --- a/src/server/goog-device/adb/index.ts +++ b/src/server/goog-device/adb/index.ts @@ -1,6 +1,6 @@ -import Adb from '@devicefarmer/adbkit/lib/adb'; +import Adb from '@dead50f7/adbkit/lib/adb'; import { ExtendedClient } from './ExtendedClient'; -import { ClientOptions } from '@devicefarmer/adbkit/lib/ClientOptions'; +import { ClientOptions } from '@dead50f7/adbkit/lib/ClientOptions'; interface Options { host?: string; diff --git a/src/server/goog-device/filePush/FilePushReader.ts b/src/server/goog-device/filePush/FilePushReader.ts index afc0108c..d919c1e8 100644 --- a/src/server/goog-device/filePush/FilePushReader.ts +++ b/src/server/goog-device/filePush/FilePushReader.ts @@ -1,7 +1,7 @@ import { ReadableOptions } from 'stream'; import { CommandControlMessage, FilePushState } from '../../../app/controlMessage/CommandControlMessage'; import { FilePushResponseStatus } from '../../../app/googDevice/filePush/FilePushResponseStatus'; -import PushTransfer from '@devicefarmer/adbkit/lib/adb/sync/pushtransfer'; +import PushTransfer from '@dead50f7/adbkit/lib/adb/sync/pushtransfer'; import { ReadStream } from './ReadStream'; import { AdbExtended } from '../adb'; diff --git a/src/server/goog-device/mw/FileListing.ts b/src/server/goog-device/mw/FileListing.ts index df40bd1c..0f636b0e 100644 --- a/src/server/goog-device/mw/FileListing.ts +++ b/src/server/goog-device/mw/FileListing.ts @@ -1,7 +1,7 @@ import { Mw } from '../../mw/Mw'; import { AdbUtils } from '../AdbUtils'; import Util from '../../../app/Util'; -import Protocol from '@devicefarmer/adbkit/lib/adb/protocol'; +import Protocol from '@dead50f7/adbkit/lib/adb/protocol'; import { Multiplexer } from '../../../packages/multiplexer/Multiplexer'; import { ChannelCode } from '../../../common/ChannelCode'; import { FilePushReader } from '../filePush/FilePushReader'; diff --git a/src/server/goog-device/services/ControlCenter.ts b/src/server/goog-device/services/ControlCenter.ts index 58b7dd95..168852ff 100644 --- a/src/server/goog-device/services/ControlCenter.ts +++ b/src/server/goog-device/services/ControlCenter.ts @@ -1,10 +1,10 @@ -import { TrackerChangeSet } from '@devicefarmer/adbkit/lib/TrackerChangeSet'; +import { TrackerChangeSet } from '@dead50f7/adbkit/lib/TrackerChangeSet'; import { Device } from '../Device'; import { Service } from '../../services/Service'; -import AdbKitClient from '@devicefarmer/adbkit/lib/adb/client'; +import AdbKitClient from '@dead50f7/adbkit/lib/adb/client'; import { AdbExtended } from '../adb'; import GoogDeviceDescriptor from '../../../types/GoogDeviceDescriptor'; -import Tracker from '@devicefarmer/adbkit/lib/adb/tracker'; +import Tracker from '@dead50f7/adbkit/lib/adb/tracker'; import Timeout = NodeJS.Timeout; import { BaseControlCenter } from '../../services/BaseControlCenter'; import { ControlCenterCommand } from '../../../common/ControlCenterCommand'; diff --git a/typings/@devicefarmer/adbkit-logcat/index.d.ts b/typings/@devicefarmer/adbkit-logcat/index.d.ts deleted file mode 100644 index 8ef254a1..00000000 --- a/typings/@devicefarmer/adbkit-logcat/index.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { EventEmitter } from 'events'; - -declare enum PriorityLevel { - UNKNOWN = 0, - DEFAULT = 1, - VERBOSE = 2, - DEBUG = 3, - INFO = 4, - WARN = 5, - ERROR = 6, - FATAL = 7, - SILENT = 8, -} - - -declare interface AdbKitLogcatEntry { - date: Date; - pid: number; - tid: number; - priority: PriorityLevel; // You can use `logcat.Priority` to convert the value into a String. - tag: string; - message: string; -} - -declare enum AdbKitLogcatReaderEvents { - 'error', - 'end', - 'finish', - 'entry', -} - -declare interface PriorityMethods { - fromLetter(letter: string): PriorityLevel; - fromName(name: string): PriorityLevel; - toLetter(priority: PriorityLevel): string; - toName(priority: PriorityLevel): string; -} - -type AdbKitLogcatPriority = PriorityLevel & PriorityMethods; - -interface AdbKitLogcatReader extends EventEmitter { - end(): AdbKitLogcatReader; - exclude(tag: string): AdbKitLogcatReader; - excludeAll(): AdbKitLogcatReader; - include(tag: string, priority?: number | string): AdbKitLogcatReader; - includeAll(priority?: number | string): AdbKitLogcatReader; - resetFilters(): AdbKitLogcatReader; -} - -export = AdbKitLogcatReader; diff --git a/typings/@devicefarmer/adbkit/index.d.ts b/typings/@devicefarmer/adbkit/index.d.ts deleted file mode 100644 index 9d79ccec..00000000 --- a/typings/@devicefarmer/adbkit/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import Adb from './lib/adb'; -export = Adb; diff --git a/typings/@devicefarmer/adbkit/lib/Callback.d.ts b/typings/@devicefarmer/adbkit/lib/Callback.d.ts deleted file mode 100644 index de3cd602..00000000 --- a/typings/@devicefarmer/adbkit/lib/Callback.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare type Callback = (err: Error | null, result?: T) => void; diff --git a/typings/@devicefarmer/adbkit/lib/ClientOptions.d.ts b/typings/@devicefarmer/adbkit/lib/ClientOptions.d.ts deleted file mode 100644 index 77a9d7ae..00000000 --- a/typings/@devicefarmer/adbkit/lib/ClientOptions.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/// -import { TcpNetConnectOpts } from 'net'; -export interface ClientOptions extends TcpNetConnectOpts { - bin?: string; -} diff --git a/typings/@devicefarmer/adbkit/lib/CpuStats.d.ts b/typings/@devicefarmer/adbkit/lib/CpuStats.d.ts deleted file mode 100644 index c9f56a13..00000000 --- a/typings/@devicefarmer/adbkit/lib/CpuStats.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface CpuStats { - user: number; - nice: number; - system: number; - idle: number; - iowait: number; - irq: number; - softirq: number; - steal: number; - guest: number; - guestnice: number; - total: number; -} -export interface Loads { - [index: string]: CpuStats; -} diff --git a/typings/@devicefarmer/adbkit/lib/Device.d.ts b/typings/@devicefarmer/adbkit/lib/Device.d.ts deleted file mode 100644 index 17b4e654..00000000 --- a/typings/@devicefarmer/adbkit/lib/Device.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Device { - id: string; - type: 'emulator' | 'device' | 'offline'; -} diff --git a/typings/@devicefarmer/adbkit/lib/DeviceWithPath.d.ts b/typings/@devicefarmer/adbkit/lib/DeviceWithPath.d.ts deleted file mode 100644 index 2e215401..00000000 --- a/typings/@devicefarmer/adbkit/lib/DeviceWithPath.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Device } from './Device'; -export interface DeviceWithPath extends Device { - path: string; - product: string; - model: string; - device: string; - transportId: string; -} diff --git a/typings/@devicefarmer/adbkit/lib/ExtendedPublicKey.d.ts b/typings/@devicefarmer/adbkit/lib/ExtendedPublicKey.d.ts deleted file mode 100644 index 138ca332..00000000 --- a/typings/@devicefarmer/adbkit/lib/ExtendedPublicKey.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { pki } from 'node-forge'; -import PublicKey = pki.rsa.PublicKey; -export interface ExtendedPublicKey extends PublicKey { - fingerprint: string; - comment: string; -} diff --git a/typings/@devicefarmer/adbkit/lib/Features.d.ts b/typings/@devicefarmer/adbkit/lib/Features.d.ts deleted file mode 100644 index 24582c38..00000000 --- a/typings/@devicefarmer/adbkit/lib/Features.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare type Features = Record; diff --git a/typings/@devicefarmer/adbkit/lib/Forward.d.ts b/typings/@devicefarmer/adbkit/lib/Forward.d.ts deleted file mode 100644 index d84b1862..00000000 --- a/typings/@devicefarmer/adbkit/lib/Forward.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface Forward { - serial: string; - local: string; - remote: string; -} diff --git a/typings/@devicefarmer/adbkit/lib/FramebufferMeta.d.ts b/typings/@devicefarmer/adbkit/lib/FramebufferMeta.d.ts deleted file mode 100644 index e9847876..00000000 --- a/typings/@devicefarmer/adbkit/lib/FramebufferMeta.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface FramebufferMeta { - version: number; - format: string; - width: number; - height: number; - bpp: number; - size: number; - red_offset: number; - red_length: number; - blue_offset: number; - blue_length: number; - green_offset: number; - green_length: number; - alpha_offset: number; - alpha_length: number; -} diff --git a/typings/@devicefarmer/adbkit/lib/FramebufferStreamWithMeta.d.ts b/typings/@devicefarmer/adbkit/lib/FramebufferStreamWithMeta.d.ts deleted file mode 100644 index 1ccf44bc..00000000 --- a/typings/@devicefarmer/adbkit/lib/FramebufferStreamWithMeta.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { Duplex } from 'stream'; -import { FramebufferMeta } from './FramebufferMeta'; -export interface FramebufferStreamWithMeta extends Duplex { - meta: FramebufferMeta; -} diff --git a/typings/@devicefarmer/adbkit/lib/Properties.d.ts b/typings/@devicefarmer/adbkit/lib/Properties.d.ts deleted file mode 100644 index b5a109d9..00000000 --- a/typings/@devicefarmer/adbkit/lib/Properties.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare type Properties = Record; diff --git a/typings/@devicefarmer/adbkit/lib/Reverse.d.ts b/typings/@devicefarmer/adbkit/lib/Reverse.d.ts deleted file mode 100644 index 0877a454..00000000 --- a/typings/@devicefarmer/adbkit/lib/Reverse.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Reverse { - remote: string; - local: string; -} diff --git a/typings/@devicefarmer/adbkit/lib/SocketOptions.d.ts b/typings/@devicefarmer/adbkit/lib/SocketOptions.d.ts deleted file mode 100644 index 0661d37f..00000000 --- a/typings/@devicefarmer/adbkit/lib/SocketOptions.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ExtendedPublicKey } from './ExtendedPublicKey'; -import Bluebird from 'bluebird'; -export interface SocketOptions { - auth?: (key: ExtendedPublicKey) => Bluebird; -} diff --git a/typings/@devicefarmer/adbkit/lib/StartActivityOptions.d.ts b/typings/@devicefarmer/adbkit/lib/StartActivityOptions.d.ts deleted file mode 100644 index d9bfa65b..00000000 --- a/typings/@devicefarmer/adbkit/lib/StartActivityOptions.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { StartServiceOptions } from './StartServiceOptions'; -export interface StartActivityOptions extends StartServiceOptions { - debug?: boolean; - wait?: boolean; -} diff --git a/typings/@devicefarmer/adbkit/lib/StartServiceOptions.d.ts b/typings/@devicefarmer/adbkit/lib/StartServiceOptions.d.ts deleted file mode 100644 index 0ec0e3de..00000000 --- a/typings/@devicefarmer/adbkit/lib/StartServiceOptions.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -interface Extra { - key: string; - type: 'string' | 'null' | 'bool' | 'int' | 'long' | 'float' | 'uri' | 'component'; - value?: string | number | boolean | string[] | number[] | boolean[]; -} -export interface ExtraObject { - [index: string]: ExtraValue; -} -export declare type ExtraValue = number | string | boolean | ExtraObject; -export interface StartServiceOptions { - user?: number; - action?: string; - data?: string; - mimeType?: string; - category?: string | string[]; - component?: string; - flags?: number | number[]; - extras?: Extra[] | ExtraObject; -} -export {}; diff --git a/typings/@devicefarmer/adbkit/lib/TrackerChangeSet.d.ts b/typings/@devicefarmer/adbkit/lib/TrackerChangeSet.d.ts deleted file mode 100644 index de8c863e..00000000 --- a/typings/@devicefarmer/adbkit/lib/TrackerChangeSet.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Device } from './Device'; -export interface TrackerChangeSet { - removed: Device[]; - changed: Device[]; - added: Device[]; -} diff --git a/typings/@devicefarmer/adbkit/lib/WithToString.d.ts b/typings/@devicefarmer/adbkit/lib/WithToString.d.ts deleted file mode 100644 index ff3130f4..00000000 --- a/typings/@devicefarmer/adbkit/lib/WithToString.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface WithToString { - toString: () => string; -} diff --git a/typings/@devicefarmer/adbkit/lib/adb.d.ts b/typings/@devicefarmer/adbkit/lib/adb.d.ts deleted file mode 100644 index 359d95eb..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb.d.ts +++ /dev/null @@ -1,303 +0,0 @@ -import Client from './adb/client'; -import util from './adb/util'; -interface Options { - host?: string; - port?: number; - bin?: string; -} -declare class Adb { - static Keycode: { - KEYCODE_UNKNOWN: number; - KEYCODE_SOFT_LEFT: number; - KEYCODE_SOFT_RIGHT: number; - KEYCODE_HOME: number; - KEYCODE_BACK: number; - KEYCODE_CALL: number; - KEYCODE_ENDCALL: number; - KEYCODE_0: number; - KEYCODE_1: number; - KEYCODE_2: number; - KEYCODE_3: number; - KEYCODE_4: number; - KEYCODE_5: number; - KEYCODE_6: number; - KEYCODE_7: number; - KEYCODE_8: number; - KEYCODE_9: number; - KEYCODE_STAR: number; - KEYCODE_POUND: number; - KEYCODE_DPAD_UP: number; - KEYCODE_DPAD_DOWN: number; - KEYCODE_DPAD_LEFT: number; - KEYCODE_DPAD_RIGHT: number; - KEYCODE_DPAD_CENTER: number; - KEYCODE_VOLUME_UP: number; - KEYCODE_VOLUME_DOWN: number; - KEYCODE_POWER: number; - KEYCODE_CAMERA: number; - KEYCODE_CLEAR: number; - KEYCODE_A: number; - KEYCODE_B: number; - KEYCODE_C: number; - KEYCODE_D: number; - KEYCODE_E: number; - KEYCODE_F: number; - KEYCODE_G: number; - KEYCODE_H: number; - KEYCODE_I: number; - KEYCODE_J: number; - KEYCODE_K: number; - KEYCODE_L: number; - KEYCODE_M: number; - KEYCODE_N: number; - KEYCODE_O: number; - KEYCODE_P: number; - KEYCODE_Q: number; - KEYCODE_R: number; - KEYCODE_S: number; - KEYCODE_T: number; - KEYCODE_U: number; - KEYCODE_V: number; - KEYCODE_W: number; - KEYCODE_X: number; - KEYCODE_Y: number; - KEYCODE_Z: number; - KEYCODE_COMMA: number; - KEYCODE_PERIOD: number; - KEYCODE_ALT_LEFT: number; - KEYCODE_ALT_RIGHT: number; - KEYCODE_SHIFT_LEFT: number; - KEYCODE_SHIFT_RIGHT: number; - KEYCODE_TAB: number; - KEYCODE_SPACE: number; - KEYCODE_SYM: number; - KEYCODE_EXPLORER: number; - KEYCODE_ENVELOPE: number; - KEYCODE_ENTER: number; - KEYCODE_DEL: number; - KEYCODE_GRAVE: number; - KEYCODE_MINUS: number; - KEYCODE_EQUALS: number; - KEYCODE_LEFT_BRACKET: number; - KEYCODE_RIGHT_BRACKET: number; - KEYCODE_BACKSLASH: number; - KEYCODE_SEMICOLON: number; - KEYCODE_APOSTROPHE: number; - KEYCODE_SLASH: number; - KEYCODE_AT: number; - KEYCODE_NUM: number; - KEYCODE_HEADSETHOOK: number; - KEYCODE_FOCUS: number; - KEYCODE_PLUS: number; - KEYCODE_MENU: number; - KEYCODE_NOTIFICATION: number; - KEYCODE_SEARCH: number; - KEYCODE_MEDIA_PLAY_PAUSE: number; - KEYCODE_MEDIA_STOP: number; - KEYCODE_MEDIA_NEXT: number; - KEYCODE_MEDIA_PREVIOUS: number; - KEYCODE_MEDIA_REWIND: number; - KEYCODE_MEDIA_FAST_FORWARD: number; - KEYCODE_MUTE: number; - KEYCODE_PAGE_UP: number; - KEYCODE_PAGE_DOWN: number; - KEYCODE_PICTSYMBOLS: number; - KEYCODE_SWITCH_CHARSET: number; - KEYCODE_BUTTON_A: number; - KEYCODE_BUTTON_B: number; - KEYCODE_BUTTON_C: number; - KEYCODE_BUTTON_X: number; - KEYCODE_BUTTON_Y: number; - KEYCODE_BUTTON_Z: number; - KEYCODE_BUTTON_L1: number; - KEYCODE_BUTTON_R1: number; - KEYCODE_BUTTON_L2: number; - KEYCODE_BUTTON_R2: number; - KEYCODE_BUTTON_THUMBL: number; - KEYCODE_BUTTON_THUMBR: number; - KEYCODE_BUTTON_START: number; - KEYCODE_BUTTON_SELECT: number; - KEYCODE_BUTTON_MODE: number; - KEYCODE_ESCAPE: number; - KEYCODE_FORWARD_DEL: number; - KEYCODE_CTRL_LEFT: number; - KEYCODE_CTRL_RIGHT: number; - KEYCODE_CAPS_LOCK: number; - KEYCODE_SCROLL_LOCK: number; - KEYCODE_META_LEFT: number; - KEYCODE_META_RIGHT: number; - KEYCODE_FUNCTION: number; - KEYCODE_SYSRQ: number; - KEYCODE_BREAK: number; - KEYCODE_MOVE_HOME: number; - KEYCODE_MOVE_END: number; - KEYCODE_INSERT: number; - KEYCODE_FORWARD: number; - KEYCODE_MEDIA_PLAY: number; - KEYCODE_MEDIA_PAUSE: number; - KEYCODE_MEDIA_CLOSE: number; - KEYCODE_MEDIA_EJECT: number; - KEYCODE_MEDIA_RECORD: number; - KEYCODE_F1: number; - KEYCODE_F2: number; - KEYCODE_F3: number; - KEYCODE_F4: number; - KEYCODE_F5: number; - KEYCODE_F6: number; - KEYCODE_F7: number; - KEYCODE_F8: number; - KEYCODE_F9: number; - KEYCODE_F10: number; - KEYCODE_F11: number; - KEYCODE_F12: number; - KEYCODE_NUM_LOCK: number; - KEYCODE_NUMPAD_0: number; - KEYCODE_NUMPAD_1: number; - KEYCODE_NUMPAD_2: number; - KEYCODE_NUMPAD_3: number; - KEYCODE_NUMPAD_4: number; - KEYCODE_NUMPAD_5: number; - KEYCODE_NUMPAD_6: number; - KEYCODE_NUMPAD_7: number; - KEYCODE_NUMPAD_8: number; - KEYCODE_NUMPAD_9: number; - KEYCODE_NUMPAD_DIVIDE: number; - KEYCODE_NUMPAD_MULTIPLY: number; - KEYCODE_NUMPAD_SUBTRACT: number; - KEYCODE_NUMPAD_ADD: number; - KEYCODE_NUMPAD_DOT: number; - KEYCODE_NUMPAD_COMMA: number; - KEYCODE_NUMPAD_ENTER: number; - KEYCODE_NUMPAD_EQUALS: number; - KEYCODE_NUMPAD_LEFT_PAREN: number; - KEYCODE_NUMPAD_RIGHT_PAREN: number; - KEYCODE_VOLUME_MUTE: number; - KEYCODE_INFO: number; - KEYCODE_CHANNEL_UP: number; - KEYCODE_CHANNEL_DOWN: number; - KEYCODE_ZOOM_IN: number; - KEYCODE_ZOOM_OUT: number; - KEYCODE_TV: number; - KEYCODE_WINDOW: number; - KEYCODE_GUIDE: number; - KEYCODE_DVR: number; - KEYCODE_BOOKMARK: number; - KEYCODE_CAPTIONS: number; - KEYCODE_SETTINGS: number; - KEYCODE_TV_POWER: number; - KEYCODE_TV_INPUT: number; - KEYCODE_STB_POWER: number; - KEYCODE_STB_INPUT: number; - KEYCODE_AVR_POWER: number; - KEYCODE_AVR_INPUT: number; - KEYCODE_PROG_RED: number; - KEYCODE_PROG_GREEN: number; - KEYCODE_PROG_YELLOW: number; - KEYCODE_PROG_BLUE: number; - KEYCODE_APP_SWITCH: number; - KEYCODE_BUTTON_1: number; - KEYCODE_BUTTON_2: number; - KEYCODE_BUTTON_3: number; - KEYCODE_BUTTON_4: number; - KEYCODE_BUTTON_5: number; - KEYCODE_BUTTON_6: number; - KEYCODE_BUTTON_7: number; - KEYCODE_BUTTON_8: number; - KEYCODE_BUTTON_9: number; - KEYCODE_BUTTON_10: number; - KEYCODE_BUTTON_11: number; - KEYCODE_BUTTON_12: number; - KEYCODE_BUTTON_13: number; - KEYCODE_BUTTON_14: number; - KEYCODE_BUTTON_15: number; - KEYCODE_BUTTON_16: number; - KEYCODE_LANGUAGE_SWITCH: number; - KEYCODE_MANNER_MODE: number; - KEYCODE_3D_MODE: number; - KEYCODE_CONTACTS: number; - KEYCODE_CALENDAR: number; - KEYCODE_MUSIC: number; - KEYCODE_CALCULATOR: number; - KEYCODE_ZENKAKU_HANKAKU: number; - KEYCODE_EISU: number; - KEYCODE_MUHENKAN: number; - KEYCODE_HENKAN: number; - KEYCODE_KATAKANA_HIRAGANA: number; - KEYCODE_YEN: number; - KEYCODE_RO: number; - KEYCODE_KANA: number; - KEYCODE_ASSIST: number; - KEYCODE_BRIGHTNESS_DOWN: number; - KEYCODE_BRIGHTNESS_UP: number; - KEYCODE_MEDIA_AUDIO_TRACK: number; - KEYCODE_SLEEP: number; - KEYCODE_WAKEUP: number; - KEYCODE_PAIRING: number; - KEYCODE_MEDIA_TOP_MENU: number; - KEYCODE_11: number; - KEYCODE_12: number; - KEYCODE_LAST_CHANNEL: number; - KEYCODE_TV_DATA_SERVICE: number; - KEYCODE_VOICE_ASSIST: number; - KEYCODE_TV_RADIO_SERVICE: number; - KEYCODE_TV_TELETEXT: number; - KEYCODE_TV_NUMBER_ENTRY: number; - KEYCODE_TV_TERRESTRIAL_ANALOG: number; - KEYCODE_TV_TERRESTRIAL_DIGITAL: number; - KEYCODE_TV_SATELLITE: number; - KEYCODE_TV_SATELLITE_BS: number; - KEYCODE_TV_SATELLITE_CS: number; - KEYCODE_TV_SATELLITE_SERVICE: number; - KEYCODE_TV_NETWORK: number; - KEYCODE_TV_ANTENNA_CABLE: number; - KEYCODE_TV_INPUT_HDMI_1: number; - KEYCODE_TV_INPUT_HDMI_2: number; - KEYCODE_TV_INPUT_HDMI_3: number; - KEYCODE_TV_INPUT_HDMI_4: number; - KEYCODE_TV_INPUT_COMPOSITE_1: number; - KEYCODE_TV_INPUT_COMPOSITE_2: number; - KEYCODE_TV_INPUT_COMPONENT_1: number; - KEYCODE_TV_INPUT_COMPONENT_2: number; - KEYCODE_TV_INPUT_VGA_1: number; - KEYCODE_TV_AUDIO_DESCRIPTION: number; - KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: number; - KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: number; - KEYCODE_TV_ZOOM_MODE: number; - KEYCODE_TV_CONTENTS_MENU: number; - KEYCODE_TV_MEDIA_CONTEXT_MENU: number; - KEYCODE_TV_TIMER_PROGRAMMING: number; - KEYCODE_HELP: number; - KEYCODE_NAVIGATE_PREVIOUS: number; - KEYCODE_NAVIGATE_NEXT: number; - KEYCODE_NAVIGATE_IN: number; - KEYCODE_NAVIGATE_OUT: number; - KEYCODE_STEM_PRIMARY: number; - KEYCODE_STEM_1: number; - KEYCODE_STEM_2: number; - KEYCODE_STEM_3: number; - KEYCODE_DPAD_UP_LEFT: number; - KEYCODE_DPAD_DOWN_LEFT: number; - KEYCODE_DPAD_UP_RIGHT: number; - KEYCODE_DPAD_DOWN_RIGHT: number; - KEYCODE_MEDIA_SKIP_FORWARD: number; - KEYCODE_MEDIA_SKIP_BACKWARD: number; - KEYCODE_MEDIA_STEP_FORWARD: number; - KEYCODE_MEDIA_STEP_BACKWARD: number; - KEYCODE_SOFT_SLEEP: number; - KEYCODE_CUT: number; - KEYCODE_COPY: number; - KEYCODE_PASTE: number; - KEYCODE_SYSTEM_NAVIGATION_UP: number; - KEYCODE_SYSTEM_NAVIGATION_DOWN: number; - KEYCODE_SYSTEM_NAVIGATION_LEFT: number; - KEYCODE_SYSTEM_NAVIGATION_RIGHT: number; - KEYCODE_ALL_APPS: number; - KEYCODE_REFRESH: number; - KEYCODE_THUMBS_UP: number; - KEYCODE_THUMBS_DOWN: number; - KEYCODE_PROFILE_SWITCH: number; - }; - static util: typeof util; - static createClient(options?: Options): Client; -} -export = Adb; diff --git a/typings/@devicefarmer/adbkit/lib/adb/auth.d.ts b/typings/@devicefarmer/adbkit/lib/adb/auth.d.ts deleted file mode 100644 index f3afd9e9..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/auth.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ExtendedPublicKey } from '../ExtendedPublicKey'; -import Bluebird from 'bluebird'; -declare class Auth { - private static RE; - static parsePublicKey(buffer: string): Bluebird; - private static readPublicKeyFromStruct; -} -export = Auth; diff --git a/typings/@devicefarmer/adbkit/lib/adb/client.d.ts b/typings/@devicefarmer/adbkit/lib/adb/client.d.ts deleted file mode 100644 index efca79a1..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/client.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import Logcat from '@devicefarmer/adbkit-logcat'; -import Connection from './connection'; -import Sync from './sync'; -import ProcStat from './proc/stat'; -import TcpUsbServer from './tcpusb/server'; -import { Callback } from '../Callback'; -import { Device } from '../Device'; -import { Forward } from '../Forward'; -import { Reverse } from '../Reverse'; -import { StartActivityOptions } from '../StartActivityOptions'; -import { StartServiceOptions } from '../StartServiceOptions'; -import Bluebird from 'bluebird'; -import { ClientOptions } from '../ClientOptions'; -import { Duplex } from 'stream'; -import { SocketOptions } from '../SocketOptions'; -import Stats from './sync/stats'; -import Entry from './sync/entry'; -import PushTransfer from './sync/pushtransfer'; -import { ReadStream } from 'fs'; -import PullTransfer from './sync/pulltransfer'; -import { Properties } from '../Properties'; -import { Features } from '../Features'; -import { FramebufferStreamWithMeta } from '../FramebufferStreamWithMeta'; -import { WithToString } from '../WithToString'; -import Tracker from './tracker'; -import JdwpTracker from './jdwptracker'; -import { DeviceWithPath } from '../DeviceWithPath'; -declare class Client extends EventEmitter { - readonly options: ClientOptions; - readonly port: number | string; - readonly bin: string; - constructor({ port, bin }?: ClientOptions); - createTcpUsbBridge(serial: string, options: SocketOptions): TcpUsbServer; - connection(): Bluebird; - version(callback?: Callback): Bluebird; - connect(host: string, port?: number | typeof callback, callback?: Callback): Bluebird; - disconnect(host: string, port?: number | typeof callback, callback?: Callback): Bluebird; - listDevices(callback?: Callback): Bluebird; - listDevicesWithPaths(callback?: Callback): Bluebird; - trackDevices(callback?: Callback): Bluebird; - kill(callback?: Callback): Bluebird; - getSerialNo(serial: string, callback?: Callback): Bluebird; - getDevicePath(serial: string, callback?: Callback): Bluebird; - getState(serial: string, callback?: Callback): Bluebird; - getProperties(serial: string, callback?: Callback): Bluebird; - getFeatures(serial: string, callback?: Callback): Bluebird; - getPackages(serial: string, callback?: Callback): Bluebird; - getDHCPIpAddress(serial: string, iface?: string | typeof callback, callback?: Callback): Bluebird; - forward(serial: string, local: string, remote: string, callback?: Callback): Bluebird; - listForwards(serial: string, callback?: Callback): Bluebird; - reverse(serial: string, remote: string, local: string, callback?: Callback): Bluebird; - listReverses(serial: string, callback?: Callback): Bluebird; - transport(serial: string, callback?: Callback): Bluebird; - shell(serial: string, command: string | ArrayLike, callback?: Callback): Bluebird; - reboot(serial: string, callback?: Callback): Bluebird; - remount(serial: string, callback?: Callback): Bluebird; - root(serial: string, callback?: Callback): Bluebird; - trackJdwp(serial: string, callback?: Callback): Bluebird; - framebuffer(serial: string, format?: string | typeof callback, callback?: Callback): Bluebird; - screencap(serial: string, callback?: Callback): Bluebird; - openLocal(serial: string, path: string, callback?: Callback): Bluebird; - openLog(serial: string, name: string, callback?: Callback): Bluebird; - openTcp(serial: string, port: number, host?: string | typeof callback, callback?: Callback): Bluebird; - openMonkey(serial: string, port?: number | typeof callback, callback?: Callback): Bluebird; - openLogcat(serial: string, options?: { - clear?: boolean; - } | typeof callback, callback?: Callback): Bluebird; - openProcStat(serial: string, callback?: Callback): Bluebird; - clear(serial: string, pkg: string, callback?: Callback): Bluebird; - install(serial: string, apk: string, callback?: Callback): Bluebird; - installRemote(serial: string, apk: string, callback?: Callback): Bluebird; - uninstall(serial: string, pkg: string, callback?: Callback): Bluebird; - isInstalled(serial: string, pkg: string, callback?: Callback): Bluebird; - startActivity(serial: string, options: StartActivityOptions, callback?: Callback): Bluebird; - startService(serial: string, options: StartServiceOptions, callback?: Callback): Bluebird; - syncService(serial: string, callback?: Callback): Bluebird; - stat(serial: string, path: string, callback?: Callback): Bluebird; - readdir(serial: string, path: string, callback?: Callback): Bluebird; - pull(serial: string, path: string, callback?: Callback): Bluebird; - push(serial: string, contents: string | ReadStream, path: string, mode?: number | typeof callback, callback?: Callback): Bluebird; - tcpip(serial: string, port?: number | typeof callback, callback?: Callback): Bluebird; - usb(serial: string, callback?: Callback): Bluebird; - waitBootComplete(serial: string, callback?: Callback): Bluebird; - waitForDevice(serial: string, callback?: Callback): Bluebird; -} -export = Client; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command.d.ts deleted file mode 100644 index 6b7a36cf..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import Connection from './connection'; -import Protocol from './protocol'; -import Parser from './parser'; -import Bluebird from 'bluebird'; -import { WithToString } from '../WithToString'; -declare abstract class Command { - parser: Parser; - protocol: Protocol; - connection: Connection; - constructor(connection: Connection); - abstract execute(...args: any): Bluebird; - _send(data: string | Buffer): Command; - _escape(arg: number | WithToString): number | string; - _escapeCompat(arg: number | WithToString): number | string; -} -export = Command; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/forward.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/forward.d.ts deleted file mode 100644 index a980ee71..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/forward.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class ForwardCommand extends Command { - execute(serial: string, local: string, remote: string): Bluebird; -} -export = ForwardCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/getdevicepath.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/getdevicepath.d.ts deleted file mode 100644 index 9e530904..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/getdevicepath.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class GetDevicePathCommand extends Command { - execute(serial: string): Bluebird; -} -export = GetDevicePathCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/getserialno.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/getserialno.d.ts deleted file mode 100644 index 44ba0b12..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/getserialno.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class GetSerialNoCommand extends Command { - execute(serial: string): Bluebird; -} -export = GetSerialNoCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/getstate.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/getstate.d.ts deleted file mode 100644 index 34ae60ab..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/getstate.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class GetStateCommand extends Command { - execute(serial: string): Bluebird; -} -export = GetStateCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/listforwards.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/listforwards.d.ts deleted file mode 100644 index beebf68f..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/listforwards.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Command from '../../command'; -import { Forward } from '../../../Forward'; -import Bluebird from 'bluebird'; -declare class ListForwardsCommand extends Command { - execute(serial: string): Bluebird; - private _parseForwards; -} -export = ListForwardsCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/waitfordevice.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/waitfordevice.d.ts deleted file mode 100644 index 08139766..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-serial/waitfordevice.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class WaitForDeviceCommand extends Command { - execute(serial: string): Bluebird; -} -export = WaitForDeviceCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/clear.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/clear.d.ts deleted file mode 100644 index 1df00982..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/clear.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class ClearCommand extends Command { - execute(pkg: string): Bluebird; -} -export = ClearCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/framebuffer.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/framebuffer.d.ts deleted file mode 100644 index 38a252ee..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/framebuffer.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import Command from '../../command'; -import { Readable } from 'stream'; -import { FramebufferMeta } from '../../../FramebufferMeta'; -import { FramebufferStreamWithMeta } from '../../../FramebufferStreamWithMeta'; -import * as Bluebird from 'bluebird'; -declare class FrameBufferCommand extends Command { - execute(format: string): Bluebird; - _convert(meta: FramebufferMeta, format: string, raw?: Readable): Readable; - _parseHeader(header: Buffer): FramebufferMeta; -} -export = FrameBufferCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/getfeatures.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/getfeatures.d.ts deleted file mode 100644 index d0f1943e..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/getfeatures.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -import { Features } from '../../../Features'; -declare class GetFeaturesCommand extends Command { - execute(): Bluebird; - private _parseFeatures; -} -export = GetFeaturesCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/getpackages.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/getpackages.d.ts deleted file mode 100644 index 30979cc0..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/getpackages.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class GetPackagesCommand extends Command { - execute(): Bluebird; - private _parsePackages; -} -export = GetPackagesCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/getproperties.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/getproperties.d.ts deleted file mode 100644 index fddfdedd..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/getproperties.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Command from '../../command'; -import * as Bluebird from 'bluebird'; -import { Properties } from '../../../Properties'; -declare class GetPropertiesCommand extends Command { - execute(): Bluebird; - private _parseProperties; -} -export = GetPropertiesCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/install.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/install.d.ts deleted file mode 100644 index 7f745da8..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/install.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class InstallCommand extends Command { - execute(apk: string): Bluebird; -} -export = InstallCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/isinstalled.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/isinstalled.d.ts deleted file mode 100644 index 6e1a283b..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/isinstalled.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class IsInstalledCommand extends Command { - execute(pkg: string): Bluebird; -} -export = IsInstalledCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/listreverses.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/listreverses.d.ts deleted file mode 100644 index b5a84b7f..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/listreverses.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import Command from '../../command'; -import { Reverse } from '../../../Reverse'; -import Bluebird from 'bluebird'; -declare class ListReversesCommand extends Command { - execute(): Bluebird; - private _parseReverses; -} -export = ListReversesCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/local.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/local.d.ts deleted file mode 100644 index f342f88f..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/local.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import Command from '../../command'; -import { Duplex } from 'stream'; -import Bluebird from 'bluebird'; -declare class LocalCommand extends Command { - execute(path: string): Bluebird; -} -export = LocalCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/log.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/log.d.ts deleted file mode 100644 index 5bf971fc..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/log.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import Command from '../../command'; -import { Duplex } from 'stream'; -import Bluebird from 'bluebird'; -declare class LogCommand extends Command { - execute(name: string): Bluebird; -} -export = LogCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/logcat.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/logcat.d.ts deleted file mode 100644 index 6167286a..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/logcat.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import LineTransform from '../../linetransform'; -import Command from '../../command'; -import * as Bluebird from 'bluebird'; -declare class LogcatCommand extends Command { - execute(options?: { - clear?: boolean; - }): Bluebird; -} -export = LogcatCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/monkey.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/monkey.d.ts deleted file mode 100644 index d608e7be..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/monkey.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import Bluebird from 'bluebird'; -import Command from '../../command'; -import { Duplex } from 'stream'; -declare class MonkeyCommand extends Command { - execute(port: number): Bluebird; -} -export = MonkeyCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/reboot.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/reboot.d.ts deleted file mode 100644 index 0c6888f7..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/reboot.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class RebootCommand extends Command { - execute(): Bluebird; -} -export = RebootCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/remount.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/remount.d.ts deleted file mode 100644 index ac2c98f0..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/remount.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class RemountCommand extends Command { - execute(): Bluebird; -} -export = RemountCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/reverse.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/reverse.d.ts deleted file mode 100644 index 92439b9a..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/reverse.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class ReverseCommand extends Command { - execute(remote: string, local: string): Bluebird; -} -export = ReverseCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/root.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/root.d.ts deleted file mode 100644 index f9e622ea..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/root.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class RootCommand extends Command { - execute(): Bluebird; -} -export = RootCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/screencap.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/screencap.d.ts deleted file mode 100644 index 7d5f9490..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/screencap.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import Command from '../../command'; -import Bluebird from 'bluebird'; -import { Duplex } from 'stream'; -declare class ScreencapCommand extends Command { - execute(): Bluebird; -} -export = ScreencapCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/shell.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/shell.d.ts deleted file mode 100644 index 52ebf810..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/shell.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -import Command from '../../command'; -import { Duplex } from 'stream'; -import Bluebird from 'bluebird'; -import { WithToString } from '../../../WithToString'; -declare class ShellCommand extends Command { - execute(command: string | ArrayLike): Bluebird; -} -export = ShellCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/startactivity.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/startactivity.d.ts deleted file mode 100644 index 26b0e41f..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/startactivity.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Command from '../../command'; -import { StartActivityOptions } from '../../../StartActivityOptions'; -import Bluebird from 'bluebird'; -declare class StartActivityCommand extends Command { - execute(options: StartActivityOptions): Bluebird; - _run(command: string, args: Array): Bluebird; - protected _intentArgs(options: StartActivityOptions): Array; - private _formatExtras; - private _formatShortExtra; - private _formatLongExtra; -} -export = StartActivityCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/startservice.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/startservice.d.ts deleted file mode 100644 index 4c2dba4f..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/startservice.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import StartActivityCommand from './startactivity'; -import { StartServiceOptions } from '../../../StartServiceOptions'; -import Bluebird from 'bluebird'; -declare class StartServiceCommand extends StartActivityCommand { - execute(options: StartServiceOptions): Bluebird; -} -export = StartServiceCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/sync.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/sync.d.ts deleted file mode 100644 index 0009c136..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/sync.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import Sync from '../../sync'; -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class SyncCommand extends Command { - execute(): Bluebird; -} -export = SyncCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/tcp.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/tcp.d.ts deleted file mode 100644 index 8e572690..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/tcp.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/// -import Command from '../../command'; -import { Duplex } from 'stream'; -import Bluebird from 'bluebird'; -declare class TcpCommand extends Command { - execute(port: number, host?: string): Bluebird; -} -export = TcpCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/tcpip.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/tcpip.d.ts deleted file mode 100644 index 09a919d6..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/tcpip.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class TcpIpCommand extends Command { - execute(port: number): Bluebird; -} -export = TcpIpCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/trackjdwp.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/trackjdwp.d.ts deleted file mode 100644 index b6da1bea..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/trackjdwp.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import Bluebird from 'bluebird'; -import Command from '../../command'; -import JdwpTracker from '../../jdwptracker'; -declare class TrackJdwpCommand extends Command { - execute(): Bluebird; -} -export = TrackJdwpCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/uninstall.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/uninstall.d.ts deleted file mode 100644 index 18ec38d6..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/uninstall.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class UninstallCommand extends Command { - execute(pkg: string): Bluebird; -} -export = UninstallCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/usb.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/usb.d.ts deleted file mode 100644 index c671aa0d..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/usb.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class UsbCommand extends Command { - execute(): Bluebird; -} -export = UsbCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/waitbootcomplete.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/waitbootcomplete.d.ts deleted file mode 100644 index 183e78a4..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host-transport/waitbootcomplete.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class WaitBootCompleteCommand extends Command { - execute(): Bluebird; -} -export = WaitBootCompleteCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host/connect.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host/connect.d.ts deleted file mode 100644 index c5a1df42..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host/connect.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class ConnectCommand extends Command { - execute(host: string, port: number): Bluebird; -} -export = ConnectCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host/devices.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host/devices.d.ts deleted file mode 100644 index a11f09c2..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host/devices.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import Command from '../../command'; -import { Device } from '../../../Device'; -import Bluebird from 'bluebird'; -declare class HostDevicesCommand extends Command { - execute(): Bluebird; - _readDevices(): Bluebird; - _parseDevices(value: Buffer): Device[]; -} -export = HostDevicesCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host/deviceswithpaths.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host/deviceswithpaths.d.ts deleted file mode 100644 index cc143a23..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host/deviceswithpaths.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import Command from '../../command'; -import { DeviceWithPath } from '../../../DeviceWithPath'; -import Bluebird from 'bluebird'; -declare class HostDevicesWithPathsCommand extends Command { - execute(): Bluebird; - _readDevices(): Bluebird; - private _parseDevices; -} -export = HostDevicesWithPathsCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host/disconnect.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host/disconnect.d.ts deleted file mode 100644 index 8e035c65..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host/disconnect.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class DisconnectCommand extends Command { - execute(host: string, port: number): Bluebird; -} -export = DisconnectCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host/kill.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host/kill.d.ts deleted file mode 100644 index f4f00f46..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host/kill.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class HostKillCommand extends Command { - execute(): Bluebird; -} -export = HostKillCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host/trackdevices.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host/trackdevices.d.ts deleted file mode 100644 index 13318daf..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host/trackdevices.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import HostDevicesCommand from './devices'; -import Bluebird from 'bluebird'; -declare class HostTrackDevicesCommand extends HostDevicesCommand { - execute(): Bluebird; -} -export = HostTrackDevicesCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host/transport.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host/transport.d.ts deleted file mode 100644 index 7bdd38f0..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host/transport.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class HostTransportCommand extends Command { - execute(serial: string): Bluebird; -} -export = HostTransportCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/command/host/version.d.ts b/typings/@devicefarmer/adbkit/lib/adb/command/host/version.d.ts deleted file mode 100644 index dc9a9a5d..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/command/host/version.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import Command from '../../command'; -import Bluebird from 'bluebird'; -declare class HostVersionCommand extends Command { - execute(): Bluebird; - _parseVersion(version: string): number; -} -export = HostVersionCommand; diff --git a/typings/@devicefarmer/adbkit/lib/adb/connection.d.ts b/typings/@devicefarmer/adbkit/lib/adb/connection.d.ts deleted file mode 100644 index d750f16e..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/connection.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import { ChildProcess } from 'child_process'; -import Parser from './parser'; -import Bluebird from 'bluebird'; -import { ClientOptions } from '../ClientOptions'; -declare class Connection extends EventEmitter { - options: ClientOptions; - private socket; - parser: Parser; - private triedStarting; - constructor(options: ClientOptions); - connect(): Bluebird; - end(): Connection; - write(data: string | Uint8Array, callback?: (err?: Error) => void): Connection; - startServer(): Bluebird; - private _exec; -} -export = Connection; diff --git a/typings/@devicefarmer/adbkit/lib/adb/dump.d.ts b/typings/@devicefarmer/adbkit/lib/adb/dump.d.ts deleted file mode 100644 index acff5077..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/dump.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare let func: any; -export = func; diff --git a/typings/@devicefarmer/adbkit/lib/adb/framebuffer/rgbtransform.d.ts b/typings/@devicefarmer/adbkit/lib/adb/framebuffer/rgbtransform.d.ts deleted file mode 100644 index d7d8c68a..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/framebuffer/rgbtransform.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { Stream, TransformCallback, TransformOptions } from 'stream'; -import { FramebufferMeta } from '../../FramebufferMeta'; -declare class RgbTransform extends Stream.Transform { - private meta; - private _buffer; - private readonly _r_pos; - private readonly _g_pos; - private readonly _b_pos; - private readonly _a_pos; - private readonly _pixel_bytes; - constructor(meta: FramebufferMeta, options?: TransformOptions); - _transform(chunk: Buffer, encoding: string, done: TransformCallback): void; -} -export = RgbTransform; diff --git a/typings/@devicefarmer/adbkit/lib/adb/jdwptracker.d.ts b/typings/@devicefarmer/adbkit/lib/adb/jdwptracker.d.ts deleted file mode 100644 index 7d065d21..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/jdwptracker.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import Bluebird from 'bluebird'; -import Command from './command'; -declare class JdwpTracker extends EventEmitter { - private command; - private pids; - private pidMap; - private reader; - constructor(command: Command); - read(): Bluebird; - update(newList: string[]): JdwpTracker; - end(): JdwpTracker; -} -export = JdwpTracker; diff --git a/typings/@devicefarmer/adbkit/lib/adb/keycode.d.ts b/typings/@devicefarmer/adbkit/lib/adb/keycode.d.ts deleted file mode 100644 index 28824e6f..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/keycode.d.ts +++ /dev/null @@ -1,292 +0,0 @@ -declare const _default: { - KEYCODE_UNKNOWN: number; - KEYCODE_SOFT_LEFT: number; - KEYCODE_SOFT_RIGHT: number; - KEYCODE_HOME: number; - KEYCODE_BACK: number; - KEYCODE_CALL: number; - KEYCODE_ENDCALL: number; - KEYCODE_0: number; - KEYCODE_1: number; - KEYCODE_2: number; - KEYCODE_3: number; - KEYCODE_4: number; - KEYCODE_5: number; - KEYCODE_6: number; - KEYCODE_7: number; - KEYCODE_8: number; - KEYCODE_9: number; - KEYCODE_STAR: number; - KEYCODE_POUND: number; - KEYCODE_DPAD_UP: number; - KEYCODE_DPAD_DOWN: number; - KEYCODE_DPAD_LEFT: number; - KEYCODE_DPAD_RIGHT: number; - KEYCODE_DPAD_CENTER: number; - KEYCODE_VOLUME_UP: number; - KEYCODE_VOLUME_DOWN: number; - KEYCODE_POWER: number; - KEYCODE_CAMERA: number; - KEYCODE_CLEAR: number; - KEYCODE_A: number; - KEYCODE_B: number; - KEYCODE_C: number; - KEYCODE_D: number; - KEYCODE_E: number; - KEYCODE_F: number; - KEYCODE_G: number; - KEYCODE_H: number; - KEYCODE_I: number; - KEYCODE_J: number; - KEYCODE_K: number; - KEYCODE_L: number; - KEYCODE_M: number; - KEYCODE_N: number; - KEYCODE_O: number; - KEYCODE_P: number; - KEYCODE_Q: number; - KEYCODE_R: number; - KEYCODE_S: number; - KEYCODE_T: number; - KEYCODE_U: number; - KEYCODE_V: number; - KEYCODE_W: number; - KEYCODE_X: number; - KEYCODE_Y: number; - KEYCODE_Z: number; - KEYCODE_COMMA: number; - KEYCODE_PERIOD: number; - KEYCODE_ALT_LEFT: number; - KEYCODE_ALT_RIGHT: number; - KEYCODE_SHIFT_LEFT: number; - KEYCODE_SHIFT_RIGHT: number; - KEYCODE_TAB: number; - KEYCODE_SPACE: number; - KEYCODE_SYM: number; - KEYCODE_EXPLORER: number; - KEYCODE_ENVELOPE: number; - KEYCODE_ENTER: number; - KEYCODE_DEL: number; - KEYCODE_GRAVE: number; - KEYCODE_MINUS: number; - KEYCODE_EQUALS: number; - KEYCODE_LEFT_BRACKET: number; - KEYCODE_RIGHT_BRACKET: number; - KEYCODE_BACKSLASH: number; - KEYCODE_SEMICOLON: number; - KEYCODE_APOSTROPHE: number; - KEYCODE_SLASH: number; - KEYCODE_AT: number; - KEYCODE_NUM: number; - KEYCODE_HEADSETHOOK: number; - KEYCODE_FOCUS: number; - KEYCODE_PLUS: number; - KEYCODE_MENU: number; - KEYCODE_NOTIFICATION: number; - KEYCODE_SEARCH: number; - KEYCODE_MEDIA_PLAY_PAUSE: number; - KEYCODE_MEDIA_STOP: number; - KEYCODE_MEDIA_NEXT: number; - KEYCODE_MEDIA_PREVIOUS: number; - KEYCODE_MEDIA_REWIND: number; - KEYCODE_MEDIA_FAST_FORWARD: number; - KEYCODE_MUTE: number; - KEYCODE_PAGE_UP: number; - KEYCODE_PAGE_DOWN: number; - KEYCODE_PICTSYMBOLS: number; - KEYCODE_SWITCH_CHARSET: number; - KEYCODE_BUTTON_A: number; - KEYCODE_BUTTON_B: number; - KEYCODE_BUTTON_C: number; - KEYCODE_BUTTON_X: number; - KEYCODE_BUTTON_Y: number; - KEYCODE_BUTTON_Z: number; - KEYCODE_BUTTON_L1: number; - KEYCODE_BUTTON_R1: number; - KEYCODE_BUTTON_L2: number; - KEYCODE_BUTTON_R2: number; - KEYCODE_BUTTON_THUMBL: number; - KEYCODE_BUTTON_THUMBR: number; - KEYCODE_BUTTON_START: number; - KEYCODE_BUTTON_SELECT: number; - KEYCODE_BUTTON_MODE: number; - KEYCODE_ESCAPE: number; - KEYCODE_FORWARD_DEL: number; - KEYCODE_CTRL_LEFT: number; - KEYCODE_CTRL_RIGHT: number; - KEYCODE_CAPS_LOCK: number; - KEYCODE_SCROLL_LOCK: number; - KEYCODE_META_LEFT: number; - KEYCODE_META_RIGHT: number; - KEYCODE_FUNCTION: number; - KEYCODE_SYSRQ: number; - KEYCODE_BREAK: number; - KEYCODE_MOVE_HOME: number; - KEYCODE_MOVE_END: number; - KEYCODE_INSERT: number; - KEYCODE_FORWARD: number; - KEYCODE_MEDIA_PLAY: number; - KEYCODE_MEDIA_PAUSE: number; - KEYCODE_MEDIA_CLOSE: number; - KEYCODE_MEDIA_EJECT: number; - KEYCODE_MEDIA_RECORD: number; - KEYCODE_F1: number; - KEYCODE_F2: number; - KEYCODE_F3: number; - KEYCODE_F4: number; - KEYCODE_F5: number; - KEYCODE_F6: number; - KEYCODE_F7: number; - KEYCODE_F8: number; - KEYCODE_F9: number; - KEYCODE_F10: number; - KEYCODE_F11: number; - KEYCODE_F12: number; - KEYCODE_NUM_LOCK: number; - KEYCODE_NUMPAD_0: number; - KEYCODE_NUMPAD_1: number; - KEYCODE_NUMPAD_2: number; - KEYCODE_NUMPAD_3: number; - KEYCODE_NUMPAD_4: number; - KEYCODE_NUMPAD_5: number; - KEYCODE_NUMPAD_6: number; - KEYCODE_NUMPAD_7: number; - KEYCODE_NUMPAD_8: number; - KEYCODE_NUMPAD_9: number; - KEYCODE_NUMPAD_DIVIDE: number; - KEYCODE_NUMPAD_MULTIPLY: number; - KEYCODE_NUMPAD_SUBTRACT: number; - KEYCODE_NUMPAD_ADD: number; - KEYCODE_NUMPAD_DOT: number; - KEYCODE_NUMPAD_COMMA: number; - KEYCODE_NUMPAD_ENTER: number; - KEYCODE_NUMPAD_EQUALS: number; - KEYCODE_NUMPAD_LEFT_PAREN: number; - KEYCODE_NUMPAD_RIGHT_PAREN: number; - KEYCODE_VOLUME_MUTE: number; - KEYCODE_INFO: number; - KEYCODE_CHANNEL_UP: number; - KEYCODE_CHANNEL_DOWN: number; - KEYCODE_ZOOM_IN: number; - KEYCODE_ZOOM_OUT: number; - KEYCODE_TV: number; - KEYCODE_WINDOW: number; - KEYCODE_GUIDE: number; - KEYCODE_DVR: number; - KEYCODE_BOOKMARK: number; - KEYCODE_CAPTIONS: number; - KEYCODE_SETTINGS: number; - KEYCODE_TV_POWER: number; - KEYCODE_TV_INPUT: number; - KEYCODE_STB_POWER: number; - KEYCODE_STB_INPUT: number; - KEYCODE_AVR_POWER: number; - KEYCODE_AVR_INPUT: number; - KEYCODE_PROG_RED: number; - KEYCODE_PROG_GREEN: number; - KEYCODE_PROG_YELLOW: number; - KEYCODE_PROG_BLUE: number; - KEYCODE_APP_SWITCH: number; - KEYCODE_BUTTON_1: number; - KEYCODE_BUTTON_2: number; - KEYCODE_BUTTON_3: number; - KEYCODE_BUTTON_4: number; - KEYCODE_BUTTON_5: number; - KEYCODE_BUTTON_6: number; - KEYCODE_BUTTON_7: number; - KEYCODE_BUTTON_8: number; - KEYCODE_BUTTON_9: number; - KEYCODE_BUTTON_10: number; - KEYCODE_BUTTON_11: number; - KEYCODE_BUTTON_12: number; - KEYCODE_BUTTON_13: number; - KEYCODE_BUTTON_14: number; - KEYCODE_BUTTON_15: number; - KEYCODE_BUTTON_16: number; - KEYCODE_LANGUAGE_SWITCH: number; - KEYCODE_MANNER_MODE: number; - KEYCODE_3D_MODE: number; - KEYCODE_CONTACTS: number; - KEYCODE_CALENDAR: number; - KEYCODE_MUSIC: number; - KEYCODE_CALCULATOR: number; - KEYCODE_ZENKAKU_HANKAKU: number; - KEYCODE_EISU: number; - KEYCODE_MUHENKAN: number; - KEYCODE_HENKAN: number; - KEYCODE_KATAKANA_HIRAGANA: number; - KEYCODE_YEN: number; - KEYCODE_RO: number; - KEYCODE_KANA: number; - KEYCODE_ASSIST: number; - KEYCODE_BRIGHTNESS_DOWN: number; - KEYCODE_BRIGHTNESS_UP: number; - KEYCODE_MEDIA_AUDIO_TRACK: number; - KEYCODE_SLEEP: number; - KEYCODE_WAKEUP: number; - KEYCODE_PAIRING: number; - KEYCODE_MEDIA_TOP_MENU: number; - KEYCODE_11: number; - KEYCODE_12: number; - KEYCODE_LAST_CHANNEL: number; - KEYCODE_TV_DATA_SERVICE: number; - KEYCODE_VOICE_ASSIST: number; - KEYCODE_TV_RADIO_SERVICE: number; - KEYCODE_TV_TELETEXT: number; - KEYCODE_TV_NUMBER_ENTRY: number; - KEYCODE_TV_TERRESTRIAL_ANALOG: number; - KEYCODE_TV_TERRESTRIAL_DIGITAL: number; - KEYCODE_TV_SATELLITE: number; - KEYCODE_TV_SATELLITE_BS: number; - KEYCODE_TV_SATELLITE_CS: number; - KEYCODE_TV_SATELLITE_SERVICE: number; - KEYCODE_TV_NETWORK: number; - KEYCODE_TV_ANTENNA_CABLE: number; - KEYCODE_TV_INPUT_HDMI_1: number; - KEYCODE_TV_INPUT_HDMI_2: number; - KEYCODE_TV_INPUT_HDMI_3: number; - KEYCODE_TV_INPUT_HDMI_4: number; - KEYCODE_TV_INPUT_COMPOSITE_1: number; - KEYCODE_TV_INPUT_COMPOSITE_2: number; - KEYCODE_TV_INPUT_COMPONENT_1: number; - KEYCODE_TV_INPUT_COMPONENT_2: number; - KEYCODE_TV_INPUT_VGA_1: number; - KEYCODE_TV_AUDIO_DESCRIPTION: number; - KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP: number; - KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN: number; - KEYCODE_TV_ZOOM_MODE: number; - KEYCODE_TV_CONTENTS_MENU: number; - KEYCODE_TV_MEDIA_CONTEXT_MENU: number; - KEYCODE_TV_TIMER_PROGRAMMING: number; - KEYCODE_HELP: number; - KEYCODE_NAVIGATE_PREVIOUS: number; - KEYCODE_NAVIGATE_NEXT: number; - KEYCODE_NAVIGATE_IN: number; - KEYCODE_NAVIGATE_OUT: number; - KEYCODE_STEM_PRIMARY: number; - KEYCODE_STEM_1: number; - KEYCODE_STEM_2: number; - KEYCODE_STEM_3: number; - KEYCODE_DPAD_UP_LEFT: number; - KEYCODE_DPAD_DOWN_LEFT: number; - KEYCODE_DPAD_UP_RIGHT: number; - KEYCODE_DPAD_DOWN_RIGHT: number; - KEYCODE_MEDIA_SKIP_FORWARD: number; - KEYCODE_MEDIA_SKIP_BACKWARD: number; - KEYCODE_MEDIA_STEP_FORWARD: number; - KEYCODE_MEDIA_STEP_BACKWARD: number; - KEYCODE_SOFT_SLEEP: number; - KEYCODE_CUT: number; - KEYCODE_COPY: number; - KEYCODE_PASTE: number; - KEYCODE_SYSTEM_NAVIGATION_UP: number; - KEYCODE_SYSTEM_NAVIGATION_DOWN: number; - KEYCODE_SYSTEM_NAVIGATION_LEFT: number; - KEYCODE_SYSTEM_NAVIGATION_RIGHT: number; - KEYCODE_ALL_APPS: number; - KEYCODE_REFRESH: number; - KEYCODE_THUMBS_UP: number; - KEYCODE_THUMBS_DOWN: number; - KEYCODE_PROFILE_SWITCH: number; -}; -export = _default; diff --git a/typings/@devicefarmer/adbkit/lib/adb/linetransform.d.ts b/typings/@devicefarmer/adbkit/lib/adb/linetransform.d.ts deleted file mode 100644 index 029eb628..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/linetransform.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -import Stream, { TransformCallback, TransformOptions } from 'stream'; -interface LineTransformOptions extends TransformOptions { - autoDetect?: boolean; -} -declare class LineTransform extends Stream.Transform { - private savedR; - private autoDetect; - private transformNeeded; - private skipBytes; - constructor(options?: LineTransformOptions); - _nullTransform(chunk: Buffer, encoding: string, done: TransformCallback): void; - _transform(chunk: Buffer, encoding: string, done: TransformCallback): void; - _flush(done: TransformCallback): void; -} -export = LineTransform; diff --git a/typings/@devicefarmer/adbkit/lib/adb/parser.d.ts b/typings/@devicefarmer/adbkit/lib/adb/parser.d.ts deleted file mode 100644 index e606655f..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/parser.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/// -import Bluebird from 'bluebird'; -import { Duplex } from 'stream'; -declare class FailError extends Error { - constructor(message: string); -} -declare class PrematureEOFError extends Error { - missingBytes: number; - constructor(howManyMissing: number); -} -declare class UnexpectedDataError extends Error { - unexpected: string; - expected: string; - constructor(unexpected: string, expected: string); -} -declare class Parser { - stream: Duplex; - static FailError: typeof FailError; - static PrematureEOFError: typeof PrematureEOFError; - static UnexpectedDataError: typeof UnexpectedDataError; - private ended; - constructor(stream: Duplex); - end(): Bluebird; - raw(): Duplex; - readAll(): Bluebird; - readAscii(howMany: number): Bluebird; - readBytes(howMany: number): Bluebird; - readByteFlow(howMany: number, targetStream: Duplex): Bluebird; - readError(): Bluebird; - readValue(): Bluebird; - readUntil(code: number): Bluebird; - searchLine(re: RegExp): Bluebird; - readLine(): Bluebird; - unexpected(data: string, expected: string): Bluebird; -} -export = Parser; diff --git a/typings/@devicefarmer/adbkit/lib/adb/proc/stat.d.ts b/typings/@devicefarmer/adbkit/lib/adb/proc/stat.d.ts deleted file mode 100644 index 84c57fe5..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/proc/stat.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import Sync from '../sync'; -import { CpuStats } from '../../CpuStats'; -import Bluebird from 'bluebird'; -interface CpuStatsWithLine extends CpuStats { - line: string; -} -interface LoadsWithLine { - [index: string]: CpuStatsWithLine; -} -declare type Stats = { - cpus: LoadsWithLine; -}; -declare class ProcStat extends EventEmitter { - private sync; - interval: number; - stats: Stats; - private readonly _ignore; - private readonly _timer; - constructor(sync: Sync); - end(): Sync; - update(): Bluebird; - private _parse; - private _set; - private _error; - private _emptyStats; -} -export = ProcStat; diff --git a/typings/@devicefarmer/adbkit/lib/adb/protocol.d.ts b/typings/@devicefarmer/adbkit/lib/adb/protocol.d.ts deleted file mode 100644 index 5e5ef6d9..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/protocol.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -declare class Protocol { - static OKAY: string; - static FAIL: string; - static STAT: string; - static LIST: string; - static DENT: string; - static RECV: string; - static DATA: string; - static DONE: string; - static SEND: string; - static QUIT: string; - static decodeLength(length: string): number; - static encodeLength(length: number): string; - static encodeData(data: Buffer | string): Buffer; -} -export = Protocol; diff --git a/typings/@devicefarmer/adbkit/lib/adb/sync.d.ts b/typings/@devicefarmer/adbkit/lib/adb/sync.d.ts deleted file mode 100644 index e00fc7ce..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/sync.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/// -import Bluebird from 'bluebird'; -import { EventEmitter } from 'events'; -import Stats from './sync/stats'; -import Entry from './sync/entry'; -import PushTransfer from './sync/pushtransfer'; -import PullTransfer from './sync/pulltransfer'; -import Connection from './connection'; -import { Callback } from '../Callback'; -import { ReadStream } from 'fs'; -declare class Sync extends EventEmitter { - private connection; - private parser; - static temp(path: string): string; - constructor(connection: Connection); - stat(path: string, callback?: Callback): Bluebird; - readdir(path: string, callback?: Callback): Bluebird; - push(contents: string | ReadStream, path: string, mode: number): PushTransfer; - pushFile(file: string, path: string, mode?: number): PushTransfer; - pushStream(stream: ReadStream, path: string, mode?: number): PushTransfer; - pull(path: string): PullTransfer; - end(): Sync; - tempFile(path: string): string; - private _writeData; - private _readData; - private _readError; - private _sendCommandWithLength; - private _sendCommandWithArg; - private _enoent; -} -export = Sync; diff --git a/typings/@devicefarmer/adbkit/lib/adb/sync/entry.d.ts b/typings/@devicefarmer/adbkit/lib/adb/sync/entry.d.ts deleted file mode 100644 index 98160051..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/sync/entry.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import Stats from './stats'; -declare class Entry extends Stats { - name: string; - constructor(name: string, mode: number, size: number, mtime: number); - toString(): string; -} -export = Entry; diff --git a/typings/@devicefarmer/adbkit/lib/adb/sync/pulltransfer.d.ts b/typings/@devicefarmer/adbkit/lib/adb/sync/pulltransfer.d.ts deleted file mode 100644 index a692b963..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/sync/pulltransfer.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import { Stream } from 'stream'; -declare class PullTransfer extends Stream.PassThrough { - stats: { - bytesTransferred: number; - }; - cancel(): boolean; - write(chunk: Buffer, encoding?: string | typeof callback, callback?: (error: Error | null | undefined) => void): boolean; -} -export = PullTransfer; diff --git a/typings/@devicefarmer/adbkit/lib/adb/sync/pushtransfer.d.ts b/typings/@devicefarmer/adbkit/lib/adb/sync/pushtransfer.d.ts deleted file mode 100644 index c056f990..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/sync/pushtransfer.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { EventEmitter } from 'events'; -declare class PushTransfer extends EventEmitter { - private _stack; - stats: { - bytesTransferred: number; - }; - cancel(): boolean; - push(byteCount: number): number; - pop(): boolean; - end(): boolean; -} -export = PushTransfer; diff --git a/typings/@devicefarmer/adbkit/lib/adb/sync/stats.d.ts b/typings/@devicefarmer/adbkit/lib/adb/sync/stats.d.ts deleted file mode 100644 index c70f50bc..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/sync/stats.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/// -import * as Fs from 'fs'; -declare class Stats extends Fs.Stats { - static S_IFMT: number; - static S_IFSOCK: number; - static S_IFLNK: number; - static S_IFREG: number; - static S_IFBLK: number; - static S_IFDIR: number; - static S_IFCHR: number; - static S_IFIFO: number; - static S_ISUID: number; - static S_ISGID: number; - static S_ISVTX: number; - static S_IRWXU: number; - static S_IRUSR: number; - static S_IWUSR: number; - static S_IXUSR: number; - static S_IRWXG: number; - static S_IRGRP: number; - constructor(mode: number, size: number, mtime: number); -} -export = Stats; diff --git a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/packet.d.ts b/typings/@devicefarmer/adbkit/lib/adb/tcpusb/packet.d.ts deleted file mode 100644 index 30f1bd55..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/packet.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/// -declare class Packet { - readonly command: number; - readonly arg0: number; - readonly arg1: number; - readonly length: number; - readonly check: number; - readonly magic: number; - data?: Buffer; - static A_SYNC: number; - static A_CNXN: number; - static A_OPEN: number; - static A_OKAY: number; - static A_CLSE: number; - static A_WRTE: number; - static A_AUTH: number; - static checksum(data?: Buffer): number; - static magic(command: number): number; - static assemble(command: number, arg0: number, arg1: number, data: Buffer): Buffer; - static swap32(n: number): number; - constructor(command: number, arg0: number, arg1: number, length: number, check: number, magic: number, data?: Buffer); - verifyChecksum(): boolean; - verifyMagic(): boolean; - private getType; - toString(): string; -} -export = Packet; diff --git a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/packetreader.d.ts b/typings/@devicefarmer/adbkit/lib/adb/tcpusb/packetreader.d.ts deleted file mode 100644 index 9d24540f..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/packetreader.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import Packet from './packet'; -import ReadableStream = NodeJS.ReadableStream; -declare class ChecksumError extends Error { - packet: Packet; - constructor(packet: Packet); -} -declare class MagicError extends Error { - packet: Packet; - constructor(packet: Packet); -} -declare class PacketReader extends EventEmitter { - private stream; - static ChecksumError: typeof ChecksumError; - static MagicError: typeof MagicError; - private inBody; - private buffer; - private packet; - constructor(stream: ReadableStream); - private _tryRead; - private _appendChunk; - private _consume; -} -export = PacketReader; diff --git a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/rollingcounter.d.ts b/typings/@devicefarmer/adbkit/lib/adb/tcpusb/rollingcounter.d.ts deleted file mode 100644 index 1929d6d4..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/rollingcounter.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare class RollingCounter { - private readonly max; - private readonly min; - private now; - constructor(max: number, min?: number); - next(): number; -} -export = RollingCounter; diff --git a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/server.d.ts b/typings/@devicefarmer/adbkit/lib/adb/tcpusb/server.d.ts deleted file mode 100644 index 8df13b1d..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/server.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/// -import * as Net from 'net'; -import { EventEmitter } from 'events'; -import Client from '../client'; -import { SocketOptions } from '../../SocketOptions'; -declare type NetServer = Net.Server; -declare class Server extends EventEmitter { - private readonly client; - private readonly serial; - private readonly options; - private readonly server; - private connections; - constructor(client: Client, serial: string, options: SocketOptions); - listen(...args: Parameters): Server; - close(): Server; - end(): Server; -} -export = Server; diff --git a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/service.d.ts b/typings/@devicefarmer/adbkit/lib/adb/tcpusb/service.d.ts deleted file mode 100644 index 9b2699ac..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/service.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import Packet from './packet'; -import Bluebird from 'bluebird'; -import Client from '../client'; -import Socket from './socket'; -declare class PrematurePacketError extends Error { - packet: Packet; - constructor(packet: Packet); -} -declare class LateTransportError extends Error { - constructor(); -} -declare class Service extends EventEmitter { - private client; - private serial; - private localId; - private remoteId; - private socket; - static PrematurePacketError: typeof PrematurePacketError; - static LateTransportError: typeof LateTransportError; - private opened; - private ended; - private transport; - private needAck; - constructor(client: Client, serial: string, localId: number, remoteId: number, socket: Socket); - end(): Service; - handle(packet: Packet): Bluebird; - private _handleOpenPacket; - private _handleOkayPacket; - private _handleWritePacket; - private _handleClosePacket; - private _tryPush; - private _readChunk; -} -export = Service; diff --git a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/servicemap.d.ts b/typings/@devicefarmer/adbkit/lib/adb/tcpusb/servicemap.d.ts deleted file mode 100644 index b2abde9c..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/servicemap.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import Service from './service'; -declare class ServiceMap { - private remotes; - count: number; - end(): void; - insert(remoteId: number, socket: Service): Service; - get(remoteId: number): Service | null; - remove(remoteId: number): Service | null; -} -export = ServiceMap; diff --git a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/socket.d.ts b/typings/@devicefarmer/adbkit/lib/adb/tcpusb/socket.d.ts deleted file mode 100644 index e187bdae..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/tcpusb/socket.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/// -import { EventEmitter } from 'events'; -import Client from '../client'; -import * as Net from 'net'; -import { SocketOptions } from '../../SocketOptions'; -declare class AuthError extends Error { - constructor(message: string); -} -declare class UnauthorizedError extends Error { - constructor(); -} -declare class Socket extends EventEmitter { - private readonly client; - private readonly serial; - private socket; - private options; - static AuthError: typeof AuthError; - static UnauthorizedError: typeof UnauthorizedError; - private ended; - private reader; - private authorized; - private syncToken; - private remoteId; - private services; - private remoteAddress?; - private token; - private signature; - version: number; - maxPayload: number; - constructor(client: Client, serial: string, socket: Net.Socket, options?: SocketOptions); - end(): Socket; - private _error; - private _handle; - private _handleSyncPacket; - private _handleConnectionPacket; - private _handleAuthPacket; - private _handleOpenPacket; - private _forwardServicePacket; - write(chunk: Buffer): boolean; - private _createToken; - private _skipNull; - private _deviceId; -} -export = Socket; diff --git a/typings/@devicefarmer/adbkit/lib/adb/tracker.d.ts b/typings/@devicefarmer/adbkit/lib/adb/tracker.d.ts deleted file mode 100644 index acfa191e..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/tracker.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/// -import * as Bluebird from 'bluebird'; -import { EventEmitter } from 'events'; -import { Device } from '../Device'; -import HostDevicesCommand from './command/host/devices'; -import HostDevicesWithPathsCommand from './command/host/deviceswithpaths'; -declare class Tracker extends EventEmitter { - private readonly command; - private deviceList; - private deviceMap; - private reader; - constructor(command: HostDevicesCommand | HostDevicesWithPathsCommand); - read(): Bluebird; - update(newList: Device[]): Tracker; - end(): Tracker; -} -export = Tracker; diff --git a/typings/@devicefarmer/adbkit/lib/adb/util.d.ts b/typings/@devicefarmer/adbkit/lib/adb/util.d.ts deleted file mode 100644 index 3a7324dc..00000000 --- a/typings/@devicefarmer/adbkit/lib/adb/util.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/// -import { Callback } from '../Callback'; -import { ExtendedPublicKey } from '../ExtendedPublicKey'; -import Bluebird from 'bluebird'; -import { Duplex } from 'stream'; -declare class Util { - static readAll(stream: Duplex, callback?: Callback): Bluebird; - static parsePublicKey(keyString: string, callback?: Callback): Bluebird; -} -export = Util; diff --git a/typings/@devicefarmer/adbkit/lib/cli.d.ts b/typings/@devicefarmer/adbkit/lib/cli.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/typings/@devicefarmer/adbkit/lib/cli.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {};