Created
February 20, 2015 12:15
-
-
Save jmoody/f631f7af98b93ad58bbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
# The public API is true/false, but we need to pass a path to a dylib to | |
# run-loop. | |
- if args.fetch(:inject_dylib, false) | |
- if simulator_target?(args) | |
- args[:inject_dylib] = Calabash::Dylibs.path_to_sim_dylib | |
- else | |
- args[:inject_dylib] = Cucumber::Dylibs.path_to_device_dylib | |
+ use_dylib = args.fetch(:inject_dylib, nil) | |
+ if use_dylib | |
+ if !File.exist?(use_dylib) | |
+ if simulator_target?(args) | |
+ args[:inject_dylib] = Calabash::Dylibs.path_to_sim_dylib | |
+ else | |
+ args[:inject_dylib] = Cucumber::Dylibs.path_to_device_dylib | |
+ end | |
end | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment