mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add jsinspector prefab target (#35796)
Summary: react-native-v8 requires the `jsinspector` for its js inspector feature. this pr adds the `jsinspector` to the prefab target list. ## Changelog [ANDROID][ADDED] - Add `jsinspector` to the prefab target Pull Request resolved: https://github.com/facebook/react-native/pull/35796 Test Plan: ``` $ ./gradlew :ReactAndroid:installArchives # check prefab files in aar $ unzip -l android/com/facebook/react/react-android/1000.0.0/react-android-1000.0.0-release.aar | grep 'prefab\/modules\/jsinspector' $ unzip -l android/com/facebook/react/react-android/1000.0.0/react-android-1000.0.0-debug.aar | grep 'prefab\/modules\/jsinspector' ``` Reviewed By: cipolleschi Differential Revision: D42430272 Pulled By: cortinico fbshipit-source-id: fd9a02fd9c33cf5d349e1a79da6f78267196efc8
This commit is contained in:
committed by
Lorenzo Sciandra
parent
44f81c0023
commit
7bdeed61ba
@@ -217,6 +217,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
|
||||
new Pair("../ReactCommon/cxxreact/", "cxxreact/"),
|
||||
]
|
||||
),
|
||||
new PrefabPreprocessingEntry(
|
||||
"jsinspector",
|
||||
new Pair("../ReactCommon/jsinspector/", "jsinspector/"),
|
||||
),
|
||||
]
|
||||
)
|
||||
it.outputDir.set(prefabHeadersDir)
|
||||
@@ -474,7 +478,8 @@ android {
|
||||
"react_render_scheduler",
|
||||
"react_render_mounting",
|
||||
"hermes_executor",
|
||||
"jscexecutor"
|
||||
"jscexecutor",
|
||||
"jsinspector"
|
||||
}
|
||||
}
|
||||
ndk {
|
||||
@@ -600,6 +605,9 @@ android {
|
||||
jscexecutor {
|
||||
headers(new File(prefabHeadersDir, "jscexecutor").absolutePath)
|
||||
}
|
||||
jsinspector {
|
||||
headers(new File(prefabHeadersDir, "jsinspector").absolutePath)
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
|
||||
Reference in New Issue
Block a user