зеркало из https://github.com/microsoft/appium.git
Fix for 3942: Removed fruitstrap (use node-idevice everywhere).
This commit is contained in:
Родитель
bf2abf55f9
Коммит
8b40589571
|
@ -10,9 +10,6 @@
|
||||||
[submodule "submodules/selendroid"]
|
[submodule "submodules/selendroid"]
|
||||||
path = submodules/selendroid
|
path = submodules/selendroid
|
||||||
url = https://github.com/selendroid/selendroid.git
|
url = https://github.com/selendroid/selendroid.git
|
||||||
[submodule "submodules/fruitstrap"]
|
|
||||||
path = submodules/fruitstrap
|
|
||||||
url = https://github.com/tborys/fruitstrap.git
|
|
||||||
[submodule "submodules/io.appium.gappium.sampleapp"]
|
[submodule "submodules/io.appium.gappium.sampleapp"]
|
||||||
path = submodules/io.appium.gappium.sampleapp
|
path = submodules/io.appium.gappium.sampleapp
|
||||||
url = https://github.com/appium/io.appium.gappium.sampleapp.git
|
url = https://github.com/appium/io.appium.gappium.sampleapp.git
|
||||||
|
|
|
@ -24,7 +24,6 @@ var path = require('path')
|
||||||
, iOSHybrid = require('./ios-hybrid.js')
|
, iOSHybrid = require('./ios-hybrid.js')
|
||||||
, settings = require('./settings.js')
|
, settings = require('./settings.js')
|
||||||
, Simulator = require('./simulator.js')
|
, Simulator = require('./simulator.js')
|
||||||
, fruitstrap = path.resolve(__dirname, '../../../build/fruitstrap/fruitstrap')
|
|
||||||
, prepareBootstrap = require('./uiauto').prepareBootstrap
|
, prepareBootstrap = require('./uiauto').prepareBootstrap
|
||||||
, CommandProxy = require('./uiauto').CommandProxy
|
, CommandProxy = require('./uiauto').CommandProxy
|
||||||
, UnknownError = errors.UnknownError
|
, UnknownError = errors.UnknownError
|
||||||
|
@ -855,8 +854,8 @@ IOS.prototype.installToRealDevice = function (cb) {
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return cb(e);
|
return cb(e);
|
||||||
}
|
}
|
||||||
this.isAppInstalled(this.args.bundleId, function (err) {
|
this.isAppInstalled(this.args.bundleId, function (err, installed) {
|
||||||
if (err) {
|
if (err || !installed) {
|
||||||
logger.debug("App is not installed. Will try to install the app.");
|
logger.debug("App is not installed. Will try to install the app.");
|
||||||
} else {
|
} else {
|
||||||
logger.debug("App is installed.");
|
logger.debug("App is installed.");
|
||||||
|
@ -1469,8 +1468,7 @@ IOS.prototype.push = function (elem) {
|
||||||
|
|
||||||
IOS.prototype.isAppInstalled = function (bundleId, cb) {
|
IOS.prototype.isAppInstalled = function (bundleId, cb) {
|
||||||
if (this.args.udid) {
|
if (this.args.udid) {
|
||||||
var isInstalledCommand = fruitstrap + ' isInstalled --id ' + this.args.udid + ' --bundle ' + bundleId;
|
this.realDevice.isInstalled(bundleId, cb);
|
||||||
deviceCommon.isAppInstalled(isInstalledCommand, cb);
|
|
||||||
} else {
|
} else {
|
||||||
cb(new Error("You can not call isInstalled for the iOS simulator!"));
|
cb(new Error("You can not call isInstalled for the iOS simulator!"));
|
||||||
}
|
}
|
||||||
|
@ -1478,8 +1476,7 @@ IOS.prototype.isAppInstalled = function (bundleId, cb) {
|
||||||
|
|
||||||
IOS.prototype.removeApp = function (bundleId, cb) {
|
IOS.prototype.removeApp = function (bundleId, cb) {
|
||||||
if (this.args.udid) {
|
if (this.args.udid) {
|
||||||
var removeCommand = fruitstrap + ' uninstall --id ' + this.args.udid + ' --bundle ' + bundleId;
|
this.realDevice.remove(bundleId, cb);
|
||||||
deviceCommon.removeApp(removeCommand, this.args.udid, bundleId, cb);
|
|
||||||
} else {
|
} else {
|
||||||
cb(new Error("You can not call removeApp for the iOS simulator!"));
|
cb(new Error("You can not call removeApp for the iOS simulator!"));
|
||||||
}
|
}
|
||||||
|
@ -1487,9 +1484,7 @@ IOS.prototype.removeApp = function (bundleId, cb) {
|
||||||
|
|
||||||
IOS.prototype.installApp = function (unzippedAppPath, cb) {
|
IOS.prototype.installApp = function (unzippedAppPath, cb) {
|
||||||
if (this.args.udid) {
|
if (this.args.udid) {
|
||||||
var installQuietFlag = this.args.quiet ? ' -q' : '';
|
this.realDevice.install(unzippedAppPath, cb);
|
||||||
var installationCommand = fruitstrap + installQuietFlag + ' install --id ' + this.args.udid + ' --bundle "' + unzippedAppPath + '"';
|
|
||||||
deviceCommon.installApp(installationCommand, this.args.udid, unzippedAppPath, cb);
|
|
||||||
} else {
|
} else {
|
||||||
cb(new Error("You can not call installApp for the iOS simulator!"));
|
cb(new Error("You can not call installApp for the iOS simulator!"));
|
||||||
}
|
}
|
||||||
|
|
10
reset.sh
10
reset.sh
|
@ -205,16 +205,6 @@ reset_ios() {
|
||||||
echo "* Cleaning/rebuilding iOS test app: WebViewApp"
|
echo "* Cleaning/rebuilding iOS test app: WebViewApp"
|
||||||
run_cmd "$grunt" buildApp:WebViewApp:iphonesimulator$sdk_ver
|
run_cmd "$grunt" buildApp:WebViewApp:iphonesimulator$sdk_ver
|
||||||
fi
|
fi
|
||||||
echo "* Cloning/updating fruitstrap"
|
|
||||||
run_cmd git submodule update --init submodules/fruitstrap
|
|
||||||
echo "* Making fruitstrap"
|
|
||||||
run_cmd pushd "$appium_home"/submodules/fruitstrap/
|
|
||||||
run_cmd make fruitstrap
|
|
||||||
run_cmd popd
|
|
||||||
echo "* Copying fruitstrap to build"
|
|
||||||
run_cmd rm -rf build/fruitstrap
|
|
||||||
run_cmd mkdir -p build/fruitstrap
|
|
||||||
run_cmd cp submodules/fruitstrap/fruitstrap build/fruitstrap
|
|
||||||
if $should_reset_realsafari; then
|
if $should_reset_realsafari; then
|
||||||
echo "* Cloning/updating SafariLauncher"
|
echo "* Cloning/updating SafariLauncher"
|
||||||
run_cmd git submodule update --init submodules/SafariLauncher
|
run_cmd git submodule update --init submodules/SafariLauncher
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit ae01ef772d45bcddca2066bdb1612667de1a1d7a
|
|
Загрузка…
Ссылка в новой задаче