MCPcopy Create free account
hub / github.com/callstack/agent-device / providerInstallResult

Function providerInstallResult

src/cloud-webdriver/runtime-helpers.ts:8–20  ·  view source on GitHub ↗
(
  upload: CloudWebDriverUploadResult | undefined,
  options: ProviderDeviceInstallOptions | undefined,
)

Source from the content-addressed store, hash-verified

6import type { CloudWebDriverPlatform, CloudWebDriverUploadResult } from './runtime.ts';
7
8export function providerInstallResult(
9 upload: CloudWebDriverUploadResult | undefined,
10 options: ProviderDeviceInstallOptions | undefined,
11): ProviderDeviceInstallResult {
12 const bundleId = upload?.bundleId ?? options?.appIdentifierHint;
13 const packageName = upload?.packageName ?? options?.packageNameHint;
14 return {
15 bundleId,
16 packageName,
17 appName: upload?.appName,
18 launchTarget: firstDefined(upload?.launchTarget, bundleId, packageName),
19 };
20}
21
22export function snapshotBackendForPlatform(
23 platform: CloudWebDriverPlatform,

Callers 1

installAppMethod · 0.90

Calls 1

firstDefinedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…