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

Function resolveIosArtifact

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

Source from the content-addressed store, hash-verified

79}
80
81async function resolveIosArtifact(
82 archivePath: string,
83 tempDir: string,
84): Promise<MaterializedArtifact> {
85 const kind = await detectIosArtifactKind(archivePath);
86 if (kind === 'app-tar') {
87 const normalizedArchivePath = normalizeArchiveExtension(archivePath, '.tar', [
88 '.tar',
89 '.tgz',
90 '.tar.gz',
91 ]);
92 const installablePath = await extractTarInstallableArtifact({
93 archivePath: normalizedArchivePath,
94 tempDir,
95 platform: 'ios',
96 });
97 return {
98 archivePath: normalizedArchivePath,
99 installablePath,
100 detected: await detectIosAppMetadata(installablePath),
101 };
102 }
103
104 const normalizedArchivePath = normalizeArchiveExtension(archivePath, '.ipa');
105 return {
106 archivePath: normalizedArchivePath,
107 installablePath: normalizedArchivePath,
108 detected: await detectIosIpaMetadata(normalizedArchivePath),
109 };
110}
111
112async function detectAndroidArtifactKind(archivePath: string): Promise<'apk' | 'aab'> {
113 const extension = path.extname(archivePath).toLowerCase();

Callers 1

Calls 5

detectIosArtifactKindFunction · 0.85
detectIosAppMetadataFunction · 0.85
detectIosIpaMetadataFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…