Skip to content

Commit bf4f381

Browse files
committed
codereview: Added comments
1 parent 60dd56a commit bf4f381

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

packages/react-native/scripts/ios-prebuild/headers-config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@ export type PodSpecConfiguration = $ReadOnly<{
1919
} | {disabled: true}>;
2020
*/
2121

22+
/*
23+
* Podspec Header Configuration Exceptions
24+
*
25+
* Most podspecs follow a standard pattern for header file locations. However, some pods
26+
* require custom configuration for where their headers should be placed in the prebuilt
27+
* framework. This map defines those exceptions.
28+
*
29+
* Each entry is keyed by the relative path to the podspec file and contains:
30+
* - name: The pod name
31+
* - headerPatterns: Glob patterns for header files to include
32+
* - headerDir: Target directory for the headers in the framework
33+
* - excludePatterns: (optional) Glob patterns for files to exclude
34+
* - subSpecs: (optional) Nested subspecs with their own header configurations
35+
* - disabled: (optional) Set to true to skip processing this podspec entirely
36+
*
37+
* Examples:
38+
* - React-jsi: Headers are placed in the 'jsi' directory
39+
* - React-Fabric: Composed of multiple subspecs (animated, animations, core, etc.),
40+
* each requiring headers in their respective 'react/renderer/...' directories
41+
*/
2242
const PodspecExceptions /*: {[key: string]: PodSpecConfiguration} */ = {
2343
'ReactCommon/jsi/React-jsi.podspec': {
2444
name: 'React-jsi',

0 commit comments

Comments
 (0)