Commit 9b8a9c3
authored
fix: skip expanding xcassets directories with no actual assets (#1940)
Fixes warning from rules_apple when an xcassets directory only contains
`Contents.json` files with no actual asset content:
> WARNING: No assets to compile for
@@rules_swift_package_manager++swift_deps+swiftpkg_stripe_ios//:Stripe.rspm_resource_bundle
> even though an asset catalog (.xcassets directory) was declared.
> Skipping asset catalog compilation.
Added `_xcassets_has_actual_assets()` function to check whether an
xcassets directory contains files other than `Contents.json` before
deciding to expand it into resources.1 parent 3fa5721 commit 9b8a9c3
1 file changed
+31
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
464 | 488 | | |
465 | 489 | | |
466 | 490 | | |
467 | 491 | | |
468 | 492 | | |
469 | 493 | | |
470 | | - | |
471 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
472 | 501 | | |
473 | 502 | | |
474 | 503 | | |
| |||
0 commit comments