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

Function detectIosIpaMetadata

src/daemon/artifact-materialization.ts:152–167  ·  view source on GitHub ↗
(
  archivePath: string,
)

Source from the content-addressed store, hash-verified

150}
151
152async function detectIosIpaMetadata(
153 archivePath: string,
154): Promise<MaterializedArtifact['detected']> {
155 const entries = await readZipEntries(archivePath);
156 const appEntry = entries?.find((entry) => /^Payload\/[^/]+\.app(\/|$)/.test(entry));
157 if (!appEntry) {
158 const appName = readBaseNameIfMeaningful(archivePath);
159 return appName ? { appName } : {};
160 }
161
162 const appName = appEntry
163 .replace(/^Payload\//, '')
164 .split('/')[0]
165 ?.replace(/\.app$/i, '');
166 return appName ? { appName } : {};
167}
168
169async function detectIosAppMetadata(
170 installablePath: string,

Callers 1

resolveIosArtifactFunction · 0.85

Calls 2

readZipEntriesFunction · 0.90
readBaseNameIfMeaningfulFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…