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

Function resolveAndroidSerialAllowlist

src/utils/device-isolation.ts:21–29  ·  view source on GitHub ↗
(
  flagValue: string | undefined,
  env: NodeJS.ProcessEnv = process.env,
)

Source from the content-addressed store, hash-verified

19}
20
21export function resolveAndroidSerialAllowlist(
22 flagValue: string | undefined,
23 env: NodeJS.ProcessEnv = process.env,
24): ReadonlySet<string> | undefined {
25 const configured =
26 normalizeNonEmpty(flagValue) ?? normalizeNonEmpty(env.AGENT_DEVICE_ANDROID_DEVICE_ALLOWLIST);
27 if (!configured) return undefined;
28 return parseSerialAllowlist(configured);
29}

Calls 2

normalizeNonEmptyFunction · 0.85
parseSerialAllowlistFunction · 0.85

Tested by

no test coverage detected