@devicefarmer/adbkit
Advanced tools
Comparing version 3.2.4 to 3.2.5
{ | ||
"name": "@devicefarmer/adbkit", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "A Typescript client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import Logcat from '@devicefarmer/adbkit-logcat'; | ||
@@ -12,7 +11,6 @@ import Connection from './connection'; | ||
import Bluebird from 'bluebird'; | ||
import { Duplex } from 'stream'; | ||
import { Duplex, Readable } from 'stream'; | ||
import Stats from './sync/stats'; | ||
import Entry from './sync/entry'; | ||
import PushTransfer from './sync/pushtransfer'; | ||
import { ReadStream } from 'fs'; | ||
import PullTransfer from './sync/pulltransfer'; | ||
@@ -276,3 +274,3 @@ import { Properties } from '../Properties'; | ||
*/ | ||
install(apk: string | ReadStream): Bluebird<boolean>; | ||
install(apk: string | Readable): Bluebird<boolean>; | ||
/** | ||
@@ -352,3 +350,3 @@ * Installs an APK file which must already be located on the device file system, and replaces any previously installed version. Useful if you've previously pushed the file to the device for some reason (perhaps to have direct access to `client.push()`'s transfer stats). This is roughly analogous to `adb shell pm install -r <apk>` followed by `adb shell rm -f <apk>`. | ||
*/ | ||
push(contents: string | ReadStream, path: string, mode?: number): Bluebird<PushTransfer>; | ||
push(contents: string | Readable, path: string, mode?: number): Bluebird<PushTransfer>; | ||
/** | ||
@@ -355,0 +353,0 @@ * Puts the device's ADB daemon into tcp mode, allowing you to use `adb connect` or `client.connect()` to connect to it. Note that the device will still be visible to ADB as a regular USB-connected device until you unplug it. Same as `adb tcpip <port>`. |
@@ -357,3 +357,3 @@ "use strict"; | ||
errorListener = (err) => reject(err); | ||
endListener = () => this.installRemote(temp).then((value) => resolve(value)); | ||
endListener = () => this.installRemote(temp).then((value) => resolve(value)).catch(reject); | ||
transfer.on('error', errorListener); | ||
@@ -360,0 +360,0 @@ transfer.on('end', endListener); |
@@ -297,3 +297,3 @@ "use strict"; | ||
KeyCodes[KeyCodes["KEYCODE_PROFILE_SWITCH"] = 288] = "KEYCODE_PROFILE_SWITCH"; | ||
})(KeyCodes = exports.KeyCodes || (exports.KeyCodes = {})); | ||
})(KeyCodes || (exports.KeyCodes = KeyCodes = {})); | ||
//# sourceMappingURL=keycode.js.map |
export default interface Device { | ||
id: string; | ||
type: 'emulator' | 'device' | 'offline'; | ||
type: 'emulator' | 'device' | 'offline' | 'unauthorized'; | ||
} | ||
//# sourceMappingURL=Device.d.ts.map |
{ | ||
"name": "@devicefarmer/adbkit", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "A Typescript client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
548307
6710