Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17397] Add --sim-focus iOS build flag to enable/disable sim focus

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2014-07-25T17:35:47.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sRelease 3.3.1, Release 3.4.0
ComponentsCLI
Labelsmodule_cli, qe-manualtest
ReporterTony Lukasavage
AssigneeTony Lukasavage
Created2014-07-25T16:39:14.000+0000
Updated2014-08-15T19:18:26.000+0000

Description

I'd like to be able to run ti build \-p ios without having the iOS simulator steal focus from my terminal. Currently there's no option to do so. I'd like to add a --sim-focus (and corollary \-\-no-sim-focus) flag to the iOS options, with a default state of true, to allow developers to enable or disable the focusing. This impetus for this issue was an issue logged in the triple project as to how the sim focusing is jarring to the developer experience: [https://github.com/tonylukasavage/triple/issues/25](https://github.com/tonylukasavage/triple/issues/25) A very simple PR soon to be attached.

Comments

  1. Tony Lukasavage 2014-07-25

    pull request

    master: https://github.com/appcelerator/titanium_mobile/pull/5932 3_3_X: https://github.com/appcelerator/titanium_mobile/pull/5933

    functional test

    Run a basic titanium app with the 3 following flag configurations.

    ti build -p ios should focus the simulator when it loads

    ti build -p ios --sim-focus should focus the simulator when it loads

    ti build -p ios --no-sim-focus should *not* focus the simulator when it loads

  2. Samuel Dowse 2014-08-15

    Tested on: Mac OSX 10.9.4 Appcelerator Studio, build: 3.3.0.201407111535 Titanium SDK, build: 3.3.1.v20140814203318, 3.4.0.v20140813022514 Titanium CLI, build: 3.3.0 Alloy: 1.4.1 iOS Simulator: 7.1 Followed test steps provided by [~tlukasavage]. Simulator focuses without specifying the flag. --sim-focus does focus the simulator. --no-sim-focus does not focus the simulator. Closing.

JSON Source