(dirPath: string, filePath: string)
| 87 | } |
| 88 | |
| 89 | async function processIosDir(dirPath: string, filePath: string): Promise<App[]> { |
| 90 | // Search for apps in the parent directory |
| 91 | const iosDir = path.dirname(filePath); |
| 92 | const iosAppIds = await detectAppIdsForPlatform(dirPath, Platform.IOS); |
| 93 | if (iosAppIds.length === 0) { |
| 94 | return [ |
| 95 | { |
| 96 | platform: Platform.IOS, |
| 97 | directory: iosDir, |
| 98 | }, |
| 99 | ]; |
| 100 | } |
| 101 | const iosApps = await Promise.all( |
| 102 | iosAppIds.map((app) => ({ |
| 103 | platform: Platform.IOS, |
| 104 | directory: iosDir, |
| 105 | appId: app.appId, |
| 106 | bundleId: app.bundleId, |
| 107 | })), |
| 108 | ); |
| 109 | return iosApps.flat(); |
| 110 | } |
| 111 | |
| 112 | async function processAndroidDir(dirPath: string, filePath: string): Promise<App[]> { |
| 113 | // Search for apps in the parent directory, not in the src/main directory |
no test coverage detected
searching dependent graphs…