(dirPath: string, filePath: string)
| 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 |
| 114 | const androidDir = path.dirname(path.dirname(filePath)); |
| 115 | const androidAppIds = await detectAppIdsForPlatform(dirPath, Platform.ANDROID); |
| 116 | |
| 117 | if (androidAppIds.length === 0) { |
| 118 | return [ |
| 119 | { |
| 120 | platform: Platform.ANDROID, |
| 121 | directory: androidDir, |
| 122 | }, |
| 123 | ]; |
| 124 | } |
| 125 | |
| 126 | const androidApps = await Promise.all( |
| 127 | androidAppIds.map((app) => ({ |
| 128 | platform: Platform.ANDROID, |
| 129 | directory: androidDir, |
| 130 | appId: app.appId, |
| 131 | bundleId: app.bundleId, |
| 132 | })), |
| 133 | ); |
| 134 | return androidApps.flat(); |
| 135 | } |
| 136 | |
| 137 | async function processFlutterDir(dirPath: string, filePath: string): Promise<App[]> { |
| 138 | const flutterDir = path.dirname(filePath); |
no test coverage detected
searching dependent graphs…