()
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected