( platform: PublicPlatform, id: string, name: string, )
| 33 | } |
| 34 | |
| 35 | export 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 | |
| 47 | function serializeSessionDevice( |
| 48 | device: AgentDeviceSessionDevice, |
no outgoing calls
no test coverage detected