Skip to content

Seal renderer Graphics public boundary - #58523

Closed
coado wants to merge 3 commits into
react:mainfrom
coado:export-D119500886
Closed

coado wants to merge 3 commits into
react:mainfrom
coado:export-D119500886

Conversation

@coado

@coado coado commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary:
Keep the CSS-free color parsing helpers (parsePlatformColorFn, fromRawValueShared, and parsePlatformColor) in the public Graphics API so the platform fromRawValue wrappers remain inline. Move hashGetColourArguments and configurePlatformColorCacheInvalidationHook into private implementation scope.

Stop exporting CSS, fbjni, and the Android cache library from the Buck target, and express implementation-only dependencies privately in Buck and CMake. The retained shared helper header depends only on RawValue, Color, and ContextContainer; CSS parsing headers remain confined to the implementation file.

Regenerate C++ API snapshots to remove the private hash and cache declarations while retaining the public color parser helpers and inline fromRawValue entry point.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D119500886

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 14, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Sep 14, 2026
@meta-codesync

meta-codesync Bot commented Sep 14, 2026

Copy link
Copy Markdown

@coado has exported this pull request. If you are a Meta employee, you can view the originating Diff in D119500886.

@meta-codesync meta-codesync Bot changed the title Seal renderer Graphics public boundary Seal renderer Graphics public boundary (#58523) Sep 16, 2026
@meta-codesync meta-codesync Bot changed the title Seal renderer Graphics public boundary (#58523) Seal renderer Graphics public boundary Sep 16, 2026
coado added 3 commits October 1, 2026 01:33
Summary:

Declare direct CSS dependencies for renderer targets that consume CSS headers instead of relying on View or Graphics to expose them transitively. Cover Buck, CMake, CocoaPods, and SwiftPM without changing header visibility or runtime behavior.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D119489856
Summary:

Move shared and platform-specific Graphics color-parsing implementations from exported headers into owned source files across generic C++, Android, Apple, and Windows targets. Preserve the existing public entry points and parsing behavior.

Update Buck source selection so default configurations link the generic C++ parser, and keep the React Native macOS and Windows mirrors synchronized.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D119500849
Summary:
Keep the CSS-free color parsing helpers (`parsePlatformColorFn`, `fromRawValueShared`, and `parsePlatformColor`) in the public Graphics API so the platform `fromRawValue` wrappers remain inline. Move `hashGetColourArguments` and `configurePlatformColorCacheInvalidationHook` into private implementation scope.

Stop exporting CSS, fbjni, and the Android cache library from the Buck target, and express implementation-only dependencies privately in Buck and CMake. The retained shared helper header depends only on `RawValue`, `Color`, and `ContextContainer`; CSS parsing headers remain confined to the implementation file.

Regenerate C++ API snapshots to remove the private hash and cache declarations while retaining the public color parser helpers and inline `fromRawValue` entry point.

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D119500886
@coado
coado force-pushed the export-D119500886 branch from 283b8a9 to d02ee88 Compare October 1, 2026 08:34
@meta-codesync meta-codesync Bot closed this in b47915d Oct 1, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Oct 1, 2026
@meta-codesync

meta-codesync Bot commented Oct 1, 2026

Copy link
Copy Markdown

This pull request has been merged in b47915d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant