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

Function processIosDir

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

Source from the content-addressed store, hash-verified

87}
88
89async 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
112async function processAndroidDir(dirPath: string, filePath: string): Promise<App[]> {
113 // Search for apps in the parent directory, not in the src/main directory

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…