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

Function sortAppleDevicesForSelection

src/kernel/device.ts:211–218  ·  view source on GitHub ↗
(
  devices: TDevice[],
)

Source from the content-addressed store, hash-verified

209}
210
211export function sortAppleDevicesForSelection<TDevice extends DeviceInfo>(
212 devices: TDevice[],
213): TDevice[] {
214 return devices
215 .map((device, index) => ({ device, index }))
216 .sort((left, right) => compareAppleDevicesForSelection(left, right))
217 .map(({ device }) => device);
218}
219
220function supportsAppleSimulatorSelection(platform: PlatformSelector | undefined): boolean {
221 return !platform || platform === 'apple' || platform === 'ios';

Callers 3

findBootableIosSimulatorFunction · 0.90
listAppleDevicesFunction · 0.90
resolveDeviceFunction · 0.85

Calls 1

Tested by

no test coverage detected