(params: {
simulatorSetPath?: string;
platform?: PlatformSelector;
target?: DeviceTarget;
})
| 196 | } |
| 197 | |
| 198 | export function resolveAppleSimulatorSetPathForSelector(params: { |
| 199 | simulatorSetPath?: string; |
| 200 | platform?: PlatformSelector; |
| 201 | target?: DeviceTarget; |
| 202 | }): string | undefined { |
| 203 | const { simulatorSetPath, platform, target } = params; |
| 204 | if (!simulatorSetPath) return undefined; |
| 205 | if (platform === 'macos' || target === 'desktop') { |
| 206 | return undefined; |
| 207 | } |
| 208 | return simulatorSetPath; |
| 209 | } |
| 210 | |
| 211 | export function sortAppleDevicesForSelection<TDevice extends DeviceInfo>( |
| 212 | devices: TDevice[], |
no outgoing calls
no test coverage detected