Skip to content

Commit a80cf96

Browse files
Kudofacebook-github-bot
authored andcommitted
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: #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
1 parent 88a1b8e commit a80cf96

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ReactAndroid/build.gradle

+9-1
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ final def preparePrefab = tasks.register("preparePrefab", PreparePrefabHeadersTa
215215
new Pair("../ReactCommon/cxxreact/", "cxxreact/"),
216216
]
217217
),
218+
new PrefabPreprocessingEntry(
219+
"jsinspector",
220+
new Pair("../ReactCommon/jsinspector/", "jsinspector/"),
221+
),
218222
]
219223
)
220224
it.outputDir.set(prefabHeadersDir)
@@ -472,7 +476,8 @@ android {
472476
"react_render_scheduler",
473477
"react_render_mounting",
474478
"hermes_executor",
475-
"jscexecutor"
479+
"jscexecutor",
480+
"jsinspector"
476481
}
477482
}
478483
ndk {
@@ -598,6 +603,9 @@ android {
598603
jscexecutor {
599604
headers(new File(prefabHeadersDir, "jscexecutor").absolutePath)
600605
}
606+
jsinspector {
607+
headers(new File(prefabHeadersDir, "jsinspector").absolutePath)
608+
}
601609
}
602610

603611
publishing {

0 commit comments

Comments
 (0)