(targets)
| 146 | } |
| 147 | |
| 148 | export function parseRunTargets(targets) { |
| 149 | return targets.map((target) => { |
| 150 | const targetParts = target.split('-'); |
| 151 | const platform = targetParts[0]; |
| 152 | const isDevice = targetParts[1] === 'device'; |
| 153 | |
| 154 | if (platform == 'ios') { |
| 155 | return new iOSRunTarget(isDevice); |
| 156 | } else if (platform == 'android') { |
| 157 | return new AndroidRunTarget(isDevice); |
| 158 | } else { |
| 159 | Console.error(`Unknown run target: ${target}`); |
| 160 | throw new main.ExitWithCode(1); |
| 161 | } |
| 162 | }); |
| 163 | }; |
| 164 | |
| 165 | /////////////////////////////////////////////////////////////////////////////// |
| 166 | // options that act like commands |
no test coverage detected
searching dependent graphs…