зеркало из https://github.com/microsoft/appium.git
deprecate iOS < 7 and xcode < 6.3 (resolve #4996)
This commit is contained in:
Родитель
df6af36478
Коммит
5aa4f8d31d
|
@ -30,6 +30,7 @@ var path = require('path')
|
|||
, UnknownError = errors.UnknownError
|
||||
, binaryPlist = true
|
||||
, Args = require("vargs").Constructor
|
||||
, logCustomDeprecationWarning = require('../../helpers.js').logCustomDeprecationWarning
|
||||
;
|
||||
|
||||
// XML Plist library helper
|
||||
|
@ -155,6 +156,13 @@ IOS.prototype.configure = function (args, caps, cb) {
|
|||
return cb(new Error(msg));
|
||||
}
|
||||
|
||||
if (parseFloat(caps.platformVersion) < 7.1) {
|
||||
logCustomDeprecationWarning('iOS version', caps.platformVersion,
|
||||
'iOS ' + caps.platformVersion + ' support has ' +
|
||||
'been deprecated and will be removed in a ' +
|
||||
'future version of Appium.');
|
||||
}
|
||||
|
||||
return this.configureApp(cb);
|
||||
};
|
||||
|
||||
|
@ -543,8 +551,18 @@ IOS.prototype.setXcodeVersion = function (cb) {
|
|||
xcode.getVersion(function (err, versionNumber) {
|
||||
if (err) {
|
||||
logger.error("Could not determine Xcode version:" + err.message);
|
||||
} else {
|
||||
var minorVersion = parseFloat(versionNumber.slice(0, 3));
|
||||
if (minorVersion < 6.3) {
|
||||
logCustomDeprecationWarning('Xcode version', versionNumber,
|
||||
'Support for Xcode ' + versionNumber + ' ' +
|
||||
'has been deprecated and will be removed ' +
|
||||
'in a future version. Please upgrade ' +
|
||||
'to version 6.3 or higher');
|
||||
}
|
||||
}
|
||||
this.xcodeVersion = versionNumber;
|
||||
logger.debug("Xcode version set to " + versionNumber);
|
||||
cb();
|
||||
}.bind(this));
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче