Commit 18f9be2
committed
fix(CocoaPods): Correctly parse secondary dependencies with versions
Until now, for secondary lines in the "PODS" section any present version
was ignored. However, if a version is present there, then there is no
top-level entry for the same package anymore to declare the version,
which resulted in a `NoSuchElementException` for the `versionForName`
map. Solve that by also parsing the version for such secondary entries,
if present.
Also, allow the lookup in `dependenciesForName` to fail, which simply
means that named package has no dependencies.
Fixes #7523.
Signed-off-by: Sebastian Schuberth <[email protected]>1 parent cf295f6 commit 18f9be2
File tree
1 file changed
+13
-3
lines changed- plugins/package-managers/cocoapods/src/main/kotlin
1 file changed
+13
-3
lines changedLines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
235 | 241 | | |
236 | 242 | | |
237 | 243 | | |
| |||
251 | 257 | | |
252 | 258 | | |
253 | 259 | | |
254 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
255 | 265 | | |
256 | 266 | | |
257 | 267 | | |
258 | 268 | | |
259 | 269 | | |
260 | 270 | | |
261 | | - | |
| 271 | + | |
262 | 272 | | |
263 | 273 | | |
264 | 274 | | |
| |||
0 commit comments