[TIMOB-17397] Add --sim-focus iOS build flag to enable/disable sim focus
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-07-25T17:35:47.000+0000 |
Affected Version/s | Release 3.3.0 |
Fix Version/s | Release 3.3.1, Release 3.4.0 |
Components | CLI |
Labels | module_cli, qe-manualtest |
Reporter | Tony Lukasavage |
Assignee | Tony Lukasavage |
Created | 2014-07-25T16:39:14.000+0000 |
Updated | 2014-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.
pull request
master: https://github.com/appcelerator/titanium_mobile/pull/5932 3_3_X: https://github.com/appcelerator/titanium_mobile/pull/5933functional test
Run a basic titanium app with the 3 following flag configurations.ti build -p ios
should focus the simulator when it loadsti build -p ios --sim-focus
should focus the simulator when it loadsti build -p ios --no-sim-focus
should *not* focus the simulator when it loadsTested 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.