MCPcopy Create free account
hub / github.com/firebase/firebase-tools / processAndroidDir

Function processAndroidDir

src/appUtils.ts:112–135  ·  view source on GitHub ↗
(dirPath: string, filePath: string)

Source from the content-addressed store, hash-verified

110}
111
112async 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
137async function processFlutterDir(dirPath: string, filePath: string): Promise<App[]> {
138 const flutterDir = path.dirname(filePath);

Callers 1

detectAppsFunction · 0.85

Calls 2

detectAppIdsForPlatformFunction · 0.85
allMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…