Skip to content

Commit

Permalink
remove safari launcher as strategy for safari + sim
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Dec 18, 2013
1 parent a48247a commit a4f82c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
9 changes: 1 addition & 8 deletions lib/appium.js
Expand Up @@ -253,14 +253,7 @@ Appium.prototype.configureApp = function(desiredCaps, hasAppInCaps, cb) {
this.isSafariLauncherApp = true;
this.configureLocalApp("./build/SafariLauncher/SafariLauncher.zip", origin, cb);
} else {
if (parseFloat(this.desiredCapabilities.version) >= 7) {
this.configureSafariForLauncher(desiredCaps, function() {
this.isSafariLauncherApp = true;
this.configureLocalApp("./build/SafariLauncher/SafariLauncherSim.zip", origin, cb);
}.bind(this));
} else {
this.configureSafari(desiredCaps, cb);
}
this.configureSafari(desiredCaps, cb);
}
} else if (this.isIos() && appPath.toLowerCase() === "iwebview") {
this.desiredCapabilities.iwebview = true;
Expand Down
2 changes: 1 addition & 1 deletion lib/server/parser.js
Expand Up @@ -227,7 +227,7 @@ var args = [
, help: "(IOS-Simulator-only) name of the iOS device to use"
}],

[['--default-device'], {
[['--default-device', '-dd'], {
dest: 'defaultDevice'
, defaultValue: false
, action: 'storeTrue'
Expand Down
14 changes: 4 additions & 10 deletions reset.sh
Expand Up @@ -180,18 +180,12 @@ reset_ios() {
run_cmd rm -rf build/fruitstrap
run_cmd mkdir -p build/fruitstrap
run_cmd cp submodules/fruitstrap/fruitstrap build/fruitstrap
echo "* Cloning/updating SafariLauncher"
run_cmd git submodule update --init submodules/SafariLauncher
echo "* Building SafariLauncher"
run_cmd rm -f submodules/Safarilauncher/target.xcconfig
echo "BUNDLE_ID = com.bytearc.SafariLauncher" >> submodules/Safarilauncher/target.xcconfig
run_cmd $grunt buildSafariLauncherApp:iphonesimulator:"target.xcconfig"
echo "* Copying SafariLauncher to build"
run_cmd rm -rf build/SafariLauncher
run_cmd mkdir -p build/SafariLauncher
run_cmd zip -r build/SafariLauncher/SafariLauncherSim submodules/SafariLauncher/build/Release-iphonesimulator/SafariLauncher.app
if $should_reset_realsafari; then
echo "* Cloning/updating SafariLauncher"
run_cmd git submodule update --init submodules/SafariLauncher
echo "* Building SafariLauncher for real devices"
run_cmd rm -rf build/SafariLauncher
run_cmd mkdir -p build/SafariLauncher
run_cmd rm -f submodules/Safarilauncher/target.xcconfig
echo "BUNDLE_ID = com.bytearc.SafariLauncher" >> submodules/Safarilauncher/target.xcconfig
if [[ ! -z $code_sign_identity ]]; then
Expand Down

0 comments on commit a4f82c3

Please sign in to comment.