Skip to content

Commit

Permalink
Update ios_runner template to dynamically receive options
Browse files Browse the repository at this point in the history
The SDK_VERSION and SIM_DEVICE variables in the runner script had
hard-coded values. This change updates them to be set by the
template expansion, so they can be controlled by the command-line
options.

--
Change-Id: I4a299ee781da19546eb137f115b8c174051ceb5f
MOS_MIGRATED_REVID=92405720
  • Loading branch information
davidsantiago authored and jhfield committed Apr 30, 2015
1 parent 8d655f5 commit fbf9d35
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/objc/ios_runner.sh.mac_template
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ if [[ "$(uname)" != Darwin ]]; then
exit 1
fi

readonly SDK_VERSION="%sdk_version%"
readonly SIM_DEVICE="%sim_device%"
# Note: SDK_VERSION and SIM_DEVICE might contain spaces, but they are already
# provided in quoted form in the template variables, so we should not quote them
# again here.
readonly SDK_VERSION=%sdk_version%
readonly SIM_DEVICE=%sim_device%
readonly APP_DIR=$(mktemp -d -t extracted_app)

args=()
Expand Down

0 comments on commit fbf9d35

Please sign in to comment.