( archivePath: string, tempDir: string, )
| 79 | } |
| 80 | |
| 81 | async 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 | |
| 112 | async function detectAndroidArtifactKind(archivePath: string): Promise<'apk' | 'aab'> { |
| 113 | const extension = path.extname(archivePath).toLowerCase(); |
no test coverage detected
searching dependent graphs…