Comparing version 1.0.6 to 1.0.7
(function() { | ||
var Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, ProcStat, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, Sync, SyncCommand, TcpCommand, UninstallCommand, 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, ProcStat, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, Sync, SyncCommand, TcpCommand, UninstallCommand, debug; | ||
@@ -28,2 +28,4 @@ Monkey = require('adbkit-monkey'); | ||
ClearCommand = require('./command/host-transport/clear'); | ||
FrameBufferCommand = require('./command/host-transport/framebuffer'); | ||
@@ -313,2 +315,11 @@ | ||
Client.prototype.clear = function(serial, pkg, callback) { | ||
return this.transport(serial, function(err, transport) { | ||
if (err) { | ||
return callback(err); | ||
} | ||
return new ClearCommand(transport).execute(pkg, callback); | ||
}); | ||
}; | ||
Client.prototype.install = function(serial, apk, callback) { | ||
@@ -315,0 +326,0 @@ var temp, |
{ | ||
"name": "adbkit", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A pure Node.js client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -160,2 +160,12 @@ # adbkit | ||
#### client.clear(serial, pkg, callback) | ||
Deletes all data associated with a package from the device. This is roughly analogous to `adb shell pm clear <pkg>`. | ||
* **serial** The serial number of the device. Corresponds to the device ID in `client.listDevices()`. | ||
* **pkg** The package name. This is NOT the APK. | ||
* **callback(err)** | ||
- **err** `null` when successful, `Error` otherwise. | ||
* Returns: The client instance. | ||
#### client.forward(serial, local, remote, callback) | ||
@@ -162,0 +172,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
137370
48
2700
703