From eb82a1d755396ed1b885af4efb809b4428d4d3d7 Mon Sep 17 00:00:00 2001 From: David Santiago Date: Tue, 28 Apr 2015 19:59:07 +0000 Subject: Update ios_runner template to dynamically receive options 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=92278475 --- tools/objc/ios_runner.sh.mac_template | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/objc/ios_runner.sh.mac_template b/tools/objc/ios_runner.sh.mac_template index 79aa4d2c19..0d4c25ebba 100644 --- a/tools/objc/ios_runner.sh.mac_template +++ b/tools/objc/ios_runner.sh.mac_template @@ -21,9 +21,8 @@ if [[ "$(uname)" != Darwin ]]; then exit 1 fi -# TODO(bazel-team): Use %sdk_version% and %sim_device% when available. -readonly SDK_VERSION='8.1' -readonly SIM_DEVICE='iPhone 6' +readonly SDK_VERSION="%sdk_version%" +readonly SIM_DEVICE="%sim_device%" readonly APP_DIR=$(mktemp -d -t extracted_app) args=() -- cgit v1.2.3