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

Function buildAndroidDeployResult

src/daemon/handlers/session-deploy.ts:192–207  ·  view source on GitHub ↗
(
  app: string,
  appPath: string,
  androidResult: Awaited<ReturnType<AppDeployOps['android']>>,
)

Source from the content-addressed store, hash-verified

190}
191
192function buildAndroidDeployResult(
193 app: string,
194 appPath: string,
195 androidResult: Awaited<ReturnType<AppDeployOps['android']>>,
196): AndroidDeployCommandResult {
197 const pkg = androidResult.package;
198 const resultApp = app || pkg || androidResult.launchTarget || appPath;
199 return {
200 app: resultApp,
201 appPath,
202 platform: 'android',
203 ...(pkg ? { appId: pkg, package: pkg, packageName: pkg } : {}),
204 appName: androidResult.appName,
205 launchTarget: androidResult.launchTarget,
206 };
207}
208
209function resolveDeployTarget(
210 command: 'install' | 'reinstall',

Callers 1

handleAppDeployCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected