MCPcopy Index your code
hub / github.com/callstack/agent-device / resolveAppleSimulatorSetPathForSelector

Function resolveAppleSimulatorSetPathForSelector

src/kernel/device.ts:198–209  ·  view source on GitHub ↗
(params: {
  simulatorSetPath?: string;
  platform?: PlatformSelector;
  target?: DeviceTarget;
})

Source from the content-addressed store, hash-verified

196}
197
198export 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
211export function sortAppleDevicesForSelection<TDevice extends DeviceInfo>(
212 devices: TDevice[],

Calls

no outgoing calls

Tested by

no test coverage detected