Commit 834721f
Fix src/main/res warnings due to AGP9 (#57637)
Summary:
Fixes this warning that will break soon due to AGP9:
```
> Task :packages:react-native:ReactAndroid:generateDebugResources
Nested resources detected.
+ src/main/res
-- src/main/res/devsupport
-- src/main/res/shell
-- src/main/res/views/alert
-- src/main/res/views/modal
-- src/main/res/views/uimanager
-- src/main/res/views/view
Nested resources means you have layout like this:
res.srcDirs = [
'src/main/res/',
'src/main/res/category1'
]
However, you should use following structure instead:
res.srcDirs = [packages:rn-tester:android:app:de
'src/main/res/common',
'src/main/res/category1',
'src/main/res/category2'
]
This Warning will be transformed into Error in version VERSION_9_0
```
## Changelog:
[INTERNAL] -
Pull Request resolved: #57637
Test Plan: CI
Reviewed By: javache
Differential Revision: D113546520
Pulled By: cortinico
fbshipit-source-id: 5ccad2642b3e777a5a14fa64ff9128a9862416c21 parent 2b992a0 commit 834721f
1 file changed
Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
625 | 625 | | |
626 | 626 | | |
627 | 627 | | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
632 | | - | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
637 | | - | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
638 | 641 | | |
639 | 642 | | |
640 | 643 | | |
| |||
0 commit comments