(params: {
device: DeviceInfo;
appId?: string;
runtime: SessionRuntimeHints | undefined;
})
| 39 | } |
| 40 | |
| 41 | export 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 | |
| 62 | export async function clearRuntimeHintsFromApp(params: { |
| 63 | device: DeviceInfo; |
no test coverage detected