Skip to content

Commit

Permalink
Cleanup srcSet for java and res (#42659)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #42659

Those folders for Java don't exist anymore, I'm removing this as it's unnecessary and will default to only src/main/java.
For resources instead, I'm using `setSrcDirs` as it will replace the default, while `srcDirs()` will add those folders.
We need to replace the default res folder as we need to follow the resource folder structure of BUCK

Changelog:
[Internal] [Changed] - Cleanup srcSet for java and res

Reviewed By: cipolleschi

Differential Revision: D53083677

fbshipit-source-id: 4dc42c700ea5446bbd49c63fc43b58ba316f4944
  • Loading branch information
cortinico authored and facebook-github-bot committed Jan 25, 2024
1 parent 889ead1 commit 97d6d72
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/react-native/ReactAndroid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -593,17 +593,12 @@ android {
":packages:react-native:ReactAndroid:hermes-engine:preBuild")

sourceSets.getByName("main") {
res.srcDirs(
res.setSrcDirs(
listOf(
"src/main/res/devsupport",
"src/main/res/shell",
"src/main/res/views/modal",
"src/main/res/views/uimanager"))
java.srcDirs(
listOf(
"src/main/java",
"src/main/libraries/soloader/java",
"src/main/jni/first-party/fb/jni/java"))
java.exclude("com/facebook/annotationprocessors")
java.exclude("com/facebook/react/processing")
java.exclude("com/facebook/react/module/processing")
Expand Down

0 comments on commit 97d6d72

Please sign in to comment.