mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Allow reactnativejni to be consumed via prefab (#35461)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35461 This is another library which is adding prefab support as it's needed by Expo libraries and Reanimated. Changelog: [Internal] [Changed] - Allow `reactnativejni` to be consumed via prefab Reviewed By: cipolleschi Differential Revision: D41520801 fbshipit-source-id: 91142a5b5051cfba478d93a2475a178eed6fbb29
This commit is contained in:
@@ -197,6 +197,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
|
||||
"react_render_mounting",
|
||||
new Pair("../ReactCommon/react/renderer/mounting/", "react/renderer/mounting/"),
|
||||
),
|
||||
new PrefabPreprocessingEntry(
|
||||
"reactnativejni",
|
||||
new Pair("src/main/jni/react/jni", "react/jni/"),
|
||||
),
|
||||
]
|
||||
)
|
||||
it.outputDir.set(prefabHeadersDir)
|
||||
@@ -425,12 +429,12 @@ android {
|
||||
"-DANDROID_TOOLCHAIN=clang",
|
||||
"-DANDROID_PLATFORM=android-21"
|
||||
|
||||
targets "reactnativejni",
|
||||
"jscexecutor",
|
||||
targets "jscexecutor",
|
||||
"jsijniprofiler",
|
||||
"reactnativeblob",
|
||||
"reactperfloggerjni",
|
||||
// prefab targets
|
||||
"reactnativejni",
|
||||
"react_render_debug",
|
||||
"turbomodulejsijni",
|
||||
"runtimeexecutor",
|
||||
@@ -567,6 +571,9 @@ android {
|
||||
react_render_mounting {
|
||||
headers(new File(prefabHeadersDir, "react_render_mounting").absolutePath)
|
||||
}
|
||||
reactnativejni {
|
||||
headers(new File(prefabHeadersDir, "reactnativejni").absolutePath)
|
||||
}
|
||||
"hermes-executor" {
|
||||
headers(new File(prefabHeadersDir, "hermes-executor").absolutePath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user