mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Cleanup srcSet for java and res (#42659)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
889ead1f1f
commit
97d6d724e1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user