MCPcopy Create free account
hub / github.com/expo/expo / podspecPath

Method podspecPath

tools/src/Packages.ts:167–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 get podspecPath(): string | null {
168 if (this.expoModuleConfig?.ios?.podspecPath) {
169 return this.expoModuleConfig.ios.podspecPath;
170 }
171
172 const applePodspecPath = this.expoModuleConfig?.apple?.podspecPath;
173 if (applePodspecPath) {
174 return Array.isArray(applePodspecPath) ? applePodspecPath[0] : applePodspecPath;
175 }
176
177 // Look for podspecs in the package root and both iOS-style subdirectories.
178 const [podspecPath] = glob.sync(
179 `{*,${this.iosSubdirectory}/*,${this.appleSubdirectory}/*}.podspec`,
180 {
181 cwd: this.path,
182 }
183 );
184
185 return podspecPath || null;
186 }
187
188 /**
189 * All podspec paths declared by the package (a package may ship several, e.g.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected