mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
First version of apps launching automatically after installation.
This commit is contained in:
@@ -19,6 +19,16 @@ module.exports = syrup.serial()
|
||||
var source = new stream.Readable().wrap(request(message.url))
|
||||
var seq = 0
|
||||
adb.install(options.serial, source)
|
||||
.then(function() {
|
||||
if (message.launchActivity) {
|
||||
log.info(
|
||||
'Launching activity with action "%s" on component "%s"'
|
||||
, message.launchActivity.action
|
||||
, message.launchActivity.component
|
||||
)
|
||||
return adb.startActivity(options.serial, message.launchActivity)
|
||||
}
|
||||
})
|
||||
.then(function() {
|
||||
log.info('Installed "%s"', message.url)
|
||||
push.send([
|
||||
|
||||
Reference in New Issue
Block a user