MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / uploadSimulatorApp

Function uploadSimulatorApp

packages/client/src/api/controls.ts:92–107  ·  view source on GitHub ↗
(
  udid: string,
  file: File,
)

Source from the content-addressed store, hash-verified

90}
91
92export 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
109export function simulatorControlSocketUrl(udid: string) {
110 const url = new URL(

Callers 1

installAppFileFunction · 0.90

Calls 1

apiRequestFunction · 0.90

Tested by

no test coverage detected