-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] MapBuffer long support #43030
Conversation
b069237
to
03fe402
Compare
Base commit: 4ecf57e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh this is great!
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/JavaOnlyArray.java
Outdated
Show resolved
Hide resolved
packages/react-native/ReactCommon/react/renderer/mapbuffer/MapBufferBuilder.cpp
Outdated
Show resolved
Hide resolved
packages/react-native/ReactCommon/react/renderer/mapbuffer/tests/MapBufferTest.cpp
Show resolved
Hide resolved
@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment, where someone else noticed the same long to double issue in another file. Was also raised that we should ideally have new tests for each of the structures we are editing, for these scenarios, like the truncation one.
...s/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeArray.java
Outdated
Show resolved
Hide resolved
@NickGerleman I dropped the bridge changes to keep this completely focused on MapBuffer. |
@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@NickGerleman merged this pull request in 57ed0fb. |
Summary:
This adds support for 64 bit integer (long) values to MapBuffer. Per the wide gamut color RFC Android encodes wide gamut colors as long values so we need to update MapBuffer to support 64 bit integers as well.
Changelog:
[ANDROID] [ADDED] - Add 64 bit integer (long) value support to MapBuffer
Test Plan:
I've added a test to the MapBuffer test suite. This new API is otherwise currently unused but will be used in subsequent PRs as part of wide gamut color support changes.