mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Poor UI for installation progress.
This commit is contained in:
@@ -99,18 +99,18 @@ module.exports = function ControlServiceFactory(
|
||||
, method: 'POST'
|
||||
, file: files[0]
|
||||
})
|
||||
.success(function(data) {
|
||||
console.log('success', arguments)
|
||||
var app = data.manifest.application
|
||||
.then(function(response) {
|
||||
var manifest = response.data.manifest
|
||||
var app = manifest.application
|
||||
var tx = TransactionService.create(devices)
|
||||
var params = {
|
||||
url: data.url
|
||||
url: response.data.url
|
||||
}
|
||||
if (app.launcherActivities.length) {
|
||||
var activity = app.launcherActivities[0]
|
||||
params.launchActivity = {
|
||||
action: 'android.intent.action.MAIN'
|
||||
, component: data.manifest.package + '/' + activity.name
|
||||
, component: manifest.package + '/' + activity.name
|
||||
, category: ['android.intent.category.LAUNCHER']
|
||||
, flags: 0x10200000
|
||||
}
|
||||
@@ -118,12 +118,6 @@ module.exports = function ControlServiceFactory(
|
||||
socket.emit('device.install', channel, tx.channel, params)
|
||||
return tx
|
||||
})
|
||||
.error(function() {
|
||||
console.log('error', arguments)
|
||||
})
|
||||
.progress(function() {
|
||||
console.log('progress', arguments)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user