mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 16:43:26 +02:00
Update with new service features.
This commit is contained in:
@@ -94,6 +94,30 @@ module.exports = function(options) {
|
||||
.on(wire.DeviceLogcatEntryMessage, function(channel, message, data) {
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.AirplaneModeEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceAirplaneMode(message.serial, message.enabled)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.BatteryEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceBattery(message.serial, message)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.BrowserPackageEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceBrowser(message.serial, message)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.ConnectivityEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceConnectivity(message.serial, message)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.PhoneStateEvent, function(channel, message, data) {
|
||||
dbapi.setDevicePhoneState(message.serial, message)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.RotationEvent, function(channel, message, data) {
|
||||
dbapi.setDeviceRotation(message.serial, message.rotation)
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.handler())
|
||||
|
||||
lifecycle.observe(function() {
|
||||
|
||||
Reference in New Issue
Block a user