( platform: AgentDeviceDevice['platform'], id: string, simulatorSetPath?: string | null, )
| 158 | } |
| 159 | |
| 160 | function buildClientDevicePlatformFields( |
| 161 | platform: AgentDeviceDevice['platform'], |
| 162 | id: string, |
| 163 | simulatorSetPath?: string | null, |
| 164 | ): Pick<AgentDeviceSessionDevice, 'ios' | 'android'> { |
| 165 | return { |
| 166 | ios: |
| 167 | platform === 'ios' |
| 168 | ? { |
| 169 | udid: id, |
| 170 | ...(simulatorSetPath !== undefined ? { simulatorSetPath } : {}), |
| 171 | } |
| 172 | : undefined, |
| 173 | android: platform === 'android' ? { serial: id } : undefined, |
| 174 | }; |
| 175 | } |
| 176 | |
| 177 | export function normalizeRuntimeHints(value: unknown): SessionRuntimeHints | undefined { |
| 178 | if (!isRecord(value)) return undefined; |
no outgoing calls
no test coverage detected