6 Commits
Author SHA1 Message Date
Dawid Małecki fd150efa29 Exclude Android specific symbols from the ReactApple snapshot (#56243)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56243

Modifies C++ API parser config to accept `exclude_symbols` at the platform level and sets `Android` symbols to be excluded from the ReactApple snapshot.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98298766

fbshipit-source-id: 70b39fe4935e6791701c173e7c9e12532c2817a5
2026-03-31 08:32:57 -07:00
Dawid Małecki d513096133 Add exclude_symbols to the cxx-api parser config (#56240)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56240

There are cases in which we want to strip particular symbols from the snapshot. This diff adds `exclude_symbols` to the parser config to enable definitions of symbol patterns that should be excluded from the snapshot.

Changelog:
[Internal]

Reviewed By: cipolleschi

Differential Revision: D98295409

fbshipit-source-id: 47414c1e5060a01dce76d1fc4fdd8ea355bb8d37
2026-03-31 08:32:57 -07:00
Dawid Małecki b0b30b5a22 Add global exclude patterns to the cxx api config (#56248)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56248

Refactor and add global exclude patterns to the C++ stable API snapshot config. This enables better modularization of shared exclude patterns coming from the assumption that ReactAndroid and ReactApple consists of ReactCommon in their inputs and some paths should not be processed on each platform.

Changelog:
[Internal]

Reviewed By: cortinico

Differential Revision: D97465431

fbshipit-source-id: e71daef90853dad8003a0f41b1ea78b8c56bee02
2026-03-31 08:32:57 -07:00
Jakub Piasecki 5976cff039 Apply doxygen input filters only when needed (#56177)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56177

Changelog: [Internal]

Makes doxygen input filers opt-in via the config file. Those are only needed for objective c files, so there's no need to run them for ReactCommon or ReactAndroid.

Reviewed By: cortinico

Differential Revision: D97489420

fbshipit-source-id: 0503801de60d6c2ae58506f20fcc06feec0501ec
2026-03-22 23:56:16 -07:00
Jakub Piasecki 4fcd2f9f6d Run codegen for each API view separately (#55997)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55997

Changelog: [Internal]

Updates the C++ API snapshot generator to invoke codegen automatically for each created API view, generating for the specific platform that's being considered.

Reviewed By: cipolleschi

Differential Revision: D95788766

fbshipit-source-id: 8b376542f7822b73e44399c2615c327332378830
2026-03-10 09:09:06 -07:00
Jakub Piasecki e0b90549e7 Integrate codegen into the api snapshot and allow configuration (#55642)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55642

Changelog: [Internal]

Adds a configuration file for the snapshot generation, allowing to create multiple views of the API and different flavors.

It also adds option to include codegen in the snapshot generation. Codegen needs to be executed first, and the path to its output needs to be passed when running the generation.

Reviewed By: cipolleschi

Differential Revision: D92958731

fbshipit-source-id: 42780d25b2bc04f213e697cca0b6bde07d94ca59
2026-02-25 01:12:30 -08:00