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

Function deviceInventoryGroupForDevice

src/core/platform-inventory.ts:106–109  ·  view source on GitHub ↗
(device: DeviceInfo)

Source from the content-addressed store, hash-verified

104}
105
106function deviceInventoryGroupForDevice(device: DeviceInfo): DeviceInventoryGroup {
107 if (isIosFamily(device) || isMacOs(device)) return 'apple';
108 return device.platform;
109}
110
111// Exported so the Apple platform-plugin's `discoverDevices` reuses the SAME
112// host-mac fast-path predicate instead of carrying a divergent copy.

Callers 1

Calls 2

isIosFamilyFunction · 0.90
isMacOsFunction · 0.90

Tested by

no test coverage detected