Comparing version 2.0.9 to 2.0.10
(function() { | ||
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, Parser, ProcStat, Promise, RebootCommand, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, Sync, SyncCommand, TcpCommand, UninstallCommand, WaitBootCompleteCommand, debug; | ||
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, Parser, ProcStat, Promise, RebootCommand, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, Sync, SyncCommand, TcpCommand, TcpUsbServer, TrackJdwpCommand, UninstallCommand, WaitBootCompleteCommand, debug; | ||
@@ -66,2 +66,4 @@ Monkey = require('adbkit-monkey'); | ||
TrackJdwpCommand = require('./command/host-transport/trackjdwp'); | ||
UninstallCommand = require('./command/host-transport/uninstall'); | ||
@@ -81,2 +83,4 @@ | ||
TcpUsbServer = require('./tcpusb/server'); | ||
Client = (function() { | ||
@@ -90,2 +94,6 @@ function Client(options) { | ||
Client.prototype.createTcpUsbBridge = function(serial) { | ||
return new TcpUsbServer(this, serial); | ||
}; | ||
Client.prototype.connection = function() { | ||
@@ -207,2 +215,8 @@ var conn, connectListener, errorListener, resolver; | ||
Client.prototype.trackJdwp = function(serial, callback) { | ||
return this.transport(serial).then(function(transport) { | ||
return new TrackJdwpCommand(transport).execute(); | ||
}).nodeify(callback); | ||
}; | ||
Client.prototype.framebuffer = function(serial, format, callback) { | ||
@@ -209,0 +223,0 @@ if (format == null) { |
{ | ||
"name": "adbkit", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "A pure Node.js client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -675,2 +675,24 @@ # adbkit | ||
#### client.trackJdwp(serial[, callback]) | ||
Starts a JDWP tracker for the given device. | ||
Note that as the tracker will keep a connection open, you must call `tracker.end()` if you wish to stop tracking JDWP processes. | ||
* **serial** The serial number of the device. Corresponds to the device ID in `client.listDevices()`. | ||
* **callback(err, tracker)** Optional. Use this or the returned `Promise`. | ||
- **err** `null` when successful, `Error` otherwise. | ||
- **tracker** The JDWP tracker, which is an [`EventEmitter`][node-events]. The following events are available: | ||
* **add** **(pid)** Emitted when a new JDWP process becomes available, once per pid. | ||
* **remove** **(pid)** Emitted when a JDWP process becomes unavailable, once per pid. | ||
* **changeSet** **(changes, pids)** All changes in a single event. | ||
- **changes** An object with the following properties always present: | ||
* **added** An array of pids that were added. Empty if none. | ||
* **removed** An array of pids that were removed. Empty if none. | ||
- **pids** All currently active pids (including pids from previous runs). | ||
* **end** Emitted when the underlying connection ends. | ||
* **error** **(err)** Emitted if there's an error. | ||
* Returns: `Promise` | ||
* Resolves with: `tracker` (see callback) | ||
#### client.uninstall(serial, pkg[, callback]) | ||
@@ -677,0 +699,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179930
53
3474
883
4