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

Function applyRuntimeHintsToApp

src/daemon/runtime-hints.ts:41–60  ·  view source on GitHub ↗
(params: {
  device: DeviceInfo;
  appId?: string;
  runtime: SessionRuntimeHints | undefined;
})

Source from the content-addressed store, hash-verified

39}
40
41export async function applyRuntimeHintsToApp(params: {
42 device: DeviceInfo;
43 appId?: string;
44 runtime: SessionRuntimeHints | undefined;
45}): Promise<void> {
46 const { device, appId, runtime } = params;
47 if (isActiveProviderDevice(device)) return;
48 if (!appId) return;
49 const transport = resolveRuntimeTransportHints(runtime);
50 if (!transport) return;
51
52 if (device.platform === 'android') {
53 await applyAndroidRuntimeHints(device, appId, transport);
54 return;
55 }
56
57 if (isIosFamily(device) && device.kind === 'simulator') {
58 await applyIosSimulatorRuntimeHints(device, appId, transport);
59 }
60}
61
62export async function clearRuntimeHintsFromApp(params: {
63 device: DeviceInfo;

Callers 2

completeOpenCommandFunction · 0.90

Calls 5

isActiveProviderDeviceFunction · 0.90
isIosFamilyFunction · 0.90
applyAndroidRuntimeHintsFunction · 0.85

Tested by

no test coverage detected