mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:33:30 +02:00
Implement automated login (Google Account).
This commit is contained in:
@@ -16,6 +16,7 @@ module.exports = syrup.serial()
|
||||
.dependency(require('./display'))
|
||||
.define(function(options, adb, router, remote, display) {
|
||||
var log = logger.createLogger('device:plugins:touch')
|
||||
var plugin = Object.create(null)
|
||||
|
||||
var service = {
|
||||
port: 2820
|
||||
@@ -97,6 +98,13 @@ module.exports = syrup.serial()
|
||||
})
|
||||
})
|
||||
|
||||
return {}
|
||||
})
|
||||
plugin.tap = function(coord) {
|
||||
modifyCoords(coord)
|
||||
monkey.tapAsync(coord.x, coord.y)
|
||||
.catch(function(err) {
|
||||
log.error('tap failed', err.stack)
|
||||
})
|
||||
}
|
||||
}).return(plugin)
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user