Implement automated login (Google Account).

This commit is contained in:
Valverde Antonio
2014-07-10 12:02:50 +09:00
parent 87a51ef76d
commit d398b7e5fb
8 changed files with 252 additions and 6 deletions

View File

@@ -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)
})