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

Function appleDeviceSelectionRank

src/kernel/device.ts:350–355  ·  view source on GitHub ↗
(device: DeviceInfo)

Source from the content-addressed store, hash-verified

348}
349
350function appleDeviceSelectionRank(device: DeviceInfo): number {
351 if (device.kind === 'simulator') return appleTargetSelectionRank(device, 0, 1, 2, 3);
352 if (device.kind === 'device' && isApplePlatform(device.platform) && !isMacOs(device))
353 return appleTargetSelectionRank(device, 10, 11, 12, 13);
354 return 14;
355}
356
357function appleTargetSelectionRank(
358 device: DeviceInfo,

Callers 1

Calls 3

appleTargetSelectionRankFunction · 0.85
isApplePlatformFunction · 0.85
isMacOsFunction · 0.85

Tested by

no test coverage detected