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

Function buildDeviceIdentifiers

src/client/client-shared.ts:35–45  ·  view source on GitHub ↗
(
  platform: PublicPlatform,
  id: string,
  name: string,
)

Source from the content-addressed store, hash-verified

33}
34
35export function buildDeviceIdentifiers(
36 platform: PublicPlatform,
37 id: string,
38 name: string,
39): AgentDeviceIdentifiers {
40 return {
41 deviceId: id,
42 deviceName: name,
43 ...(platform === 'android' ? { serial: id } : platform === 'ios' ? { udid: id } : {}),
44 };
45}
46
47function serializeSessionDevice(
48 device: AgentDeviceSessionDevice,

Callers 3

normalizeDeviceFunction · 0.90
normalizeSessionFunction · 0.90
normalizeOpenDeviceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected