Initial commit of Cxx API snapshots (#56152)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56152

## Summary

Introduces initial snapshots of the React Native C++ public API. These snapshots capture the public-facing C++ API surface as `.api` files, enabling tracking of API changes across diffs.

Six snapshot files are generated, covering three targets in two build variants each:

| Target | Debug | Release |
|---|---|---|
| **ReactCommon** (shared) | `ReactCommonDebugCxx.api` | `ReactCommonReleaseCxx.api` |
| **ReactAndroid** | `ReactAndroidDebugCxx.api` | `ReactAndroidReleaseCxx.api` |
| **ReactApple** | `ReactAppleDebugCxx.api` | `ReactAppleReleaseCxx.api` |

Debug and Release variants differ in preprocessor definitions (e.g., `DEBUG`/`REACT_NATIVE_DEBUG` vs `NDEBUG`/`REACT_NATIVE_PRODUCTION`), which can affect conditional compilation and the resulting public API surface.

The snapshots are generated by the `scripts/cxx-api` tool, which runs Doxygen on the C++ headers and codegen output, then produces a normalized text representation of all public types, functions, enums, and class hierarchies.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D97296573

fbshipit-source-id: 146fedb233699cd30fb301a95895e1bbcf13be0f
This commit is contained in:
Dawid Małecki authored and meta-codesync[bot] committed 2026-03-31 08:32:57 -07:00
1 parent 97cf2202ee
commit 93ac859737
6 files changed
+85685

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff