( udid: string, file: File, )
| 90 | } |
| 91 | |
| 92 | export function uploadSimulatorApp( |
| 93 | udid: string, |
| 94 | file: File, |
| 95 | ): Promise<InstallUploadResponse> { |
| 96 | return apiRequest<InstallUploadResponse>( |
| 97 | `/api/simulators/${encodeURIComponent(udid)}/install-upload`, |
| 98 | { |
| 99 | body: file, |
| 100 | headers: { |
| 101 | "Content-Type": "application/octet-stream", |
| 102 | "X-SimDeck-Filename": encodeURIComponent(file.name || "app-upload"), |
| 103 | }, |
| 104 | method: "POST", |
| 105 | }, |
| 106 | ); |
| 107 | } |
| 108 | |
| 109 | export function simulatorControlSocketUrl(udid: string) { |
| 110 | const url = new URL( |
no test coverage detected