mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 10:53:21 +02:00
Revert all adbkit upgrades (#207)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
var syrup = require('@devicefarmer/stf-syrup')
|
||||
|
||||
var browsers = require('@devicefarmer/stf-browser-db')
|
||||
var DeviceClient = require('@devicefarmer/adbkit/dist/src/adb/DeviceClient').default
|
||||
|
||||
var logger = require('../../../util/logger')
|
||||
var wire = require('../../../wire')
|
||||
@@ -24,7 +23,6 @@ module.exports = syrup.serial()
|
||||
.dependency(require('../support/adb'))
|
||||
.dependency(require('./service'))
|
||||
.define(function(options, router, push, adb, service) {
|
||||
var deviceClient = new DeviceClient(adb, options.serial)
|
||||
var log = logger.createLogger('device:plugins:browser')
|
||||
|
||||
function pkg(component) {
|
||||
@@ -105,7 +103,7 @@ module.exports = syrup.serial()
|
||||
}
|
||||
|
||||
var reply = wireutil.reply(options.serial)
|
||||
deviceClient.startActivity({
|
||||
adb.startActivity(options.serial, {
|
||||
action: 'android.intent.action.VIEW'
|
||||
, component: message.browser
|
||||
, data: message.url
|
||||
@@ -138,7 +136,7 @@ module.exports = syrup.serial()
|
||||
router.on(wire.BrowserClearMessage, function(channel, message) {
|
||||
log.info('Clearing "%s"', message.browser)
|
||||
var reply = wireutil.reply(options.serial)
|
||||
deviceClient.clear(pkg(message.browser))
|
||||
adb.clear(options.serial, pkg(message.browser))
|
||||
.then(function() {
|
||||
push.send([
|
||||
channel
|
||||
|
||||
Reference in New Issue
Block a user