MCPcopy Index your code
hub / github.com/callstack/agent-device / installApp

Method installApp

src/cloud-webdriver/runtime.ts:187–198  ·  view source on GitHub ↗
(
    device: DeviceInfo,
    app: string,
    appPath: string,
    installOptions?: ProviderDeviceInstallOptions,
  )

Source from the content-addressed store, hash-verified

185 }
186
187 async installApp(
188 device: DeviceInfo,
189 app: string,
190 appPath: string,
191 installOptions?: ProviderDeviceInstallOptions,
192 ): Promise<ProviderDeviceInstallResult | undefined> {
193 const session = this.findSessionForDevice(device);
194 if (!session) return undefined;
195 const upload = await this.uploadAppIfNeeded(session, device, app, appPath, installOptions);
196 await session.client.installApp(upload?.appReference ?? appPath);
197 return providerInstallResult(upload, installOptions);
198 }
199
200 async installInstallablePath(
201 device: DeviceInfo,

Callers 2

installProviderDeviceAppFunction · 0.45

Calls 3

findSessionForDeviceMethod · 0.95
uploadAppIfNeededMethod · 0.95
providerInstallResultFunction · 0.90

Tested by

no test coverage detected