mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:53:27 +02:00
Enable STFService version check again.
This commit is contained in:
@@ -14,7 +14,7 @@ module.exports = syrup.serial()
|
||||
var log = logger.createLogger('device:resources:service')
|
||||
|
||||
var resource = {
|
||||
requiredVersion: '~0.2.0'
|
||||
requiredVersion: '0.3.0'
|
||||
, pkg: 'jp.co.cyberagent.stf'
|
||||
, main: 'jp.co.cyberagent.stf.InputAgent'
|
||||
, apk: pathutil.vendor('STFService/STFService.apk')
|
||||
@@ -54,10 +54,6 @@ module.exports = syrup.serial()
|
||||
.timeout(10000)
|
||||
.then(function(buffer) {
|
||||
var version = buffer.toString()
|
||||
throw new Error(util.format(
|
||||
'Incompatible version %s'
|
||||
, version
|
||||
))
|
||||
if (semver.satisfies(version, resource.requiredVersion)) {
|
||||
return installedPath
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user