blob: 1d14f3e303df5dec0f98d255e2ef86cfa4605f2d [file] [log] [blame]
var syrup = require('stf-syrup')
var devutil = require('../../../../util/devutil')
var logger = require('../../../../util/logger')
module.exports = syrup.serial()
.dependency(require('../../support/properties'))
.dependency(require('./display'))
.dependency(require('./phone'))
.define(function(options, properties, display, phone) {
var log = logger.createLogger('device:plugins:identity')
function solve() {
log.info('Solving identity')
var identity = devutil.makeIdentity(options.serial, properties)
identity.display = display.properties
identity.phone = phone
return identity
}
return solve()
})