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:
Kudo Chien
2023-01-10 09:44:49 -08:00
committed by Facebook GitHub Bot
parent 88a1b8e18d
commit a80cf96fc8
+9 -1
View File
@@ -215,6 +215,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)
@@ -472,7 +476,8 @@ android {
"react_render_scheduler",
"react_render_mounting",
"hermes_executor",
"jscexecutor"
"jscexecutor",
"jsinspector"
}
}
ndk {
@@ -598,6 +603,9 @@ android {
jscexecutor {
headers(new File(prefabHeadersDir, "jscexecutor").absolutePath)
}
jsinspector {
headers(new File(prefabHeadersDir, "jsinspector").absolutePath)
}
}
publishing {