Skip to content

Commit 151b656

Browse files
committed
Fix src/main/res warnings due to AGP9
1 parent 0fc76bb commit 151b656

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

packages/react-native/ReactAndroid/build.gradle.kts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -625,16 +625,19 @@ android {
625625

626626
sourceSets {
627627
named("main") {
628-
res.directories.addAll(
629-
listOf(
630-
"src/main/res/devsupport",
631-
"src/main/res/shell",
632-
"src/main/res/views/alert",
633-
"src/main/res/views/modal",
634-
"src/main/res/views/uimanager",
635-
"src/main/res/views/view",
636-
)
637-
)
628+
res.directories.apply {
629+
clear()
630+
addAll(
631+
listOf(
632+
"src/main/res/devsupport",
633+
"src/main/res/shell",
634+
"src/main/res/views/alert",
635+
"src/main/res/views/modal",
636+
"src/main/res/views/uimanager",
637+
"src/main/res/views/view",
638+
)
639+
)
640+
}
638641
}
639642
}
640643

0 commit comments

Comments
 (0)