Skip to content

Add @DoNotStripAny to AnimationBackendChoreographer#55465

Closed
mdvacca wants to merge 1 commit into
react:mainfrom
mdvacca:export-D92628923
Closed

Add @DoNotStripAny to AnimationBackendChoreographer#55465
mdvacca wants to merge 1 commit into
react:mainfrom
mdvacca:export-D92628923

Conversation

@mdvacca

@mdvacca mdvacca commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

Summary:

  • AnimationBackendChoreographer.resume() and pause() are called from C++ via
    JNI reflection in JAnimationBackendChoreographer.cpp, but the class had no
    ProGuard/R8 protection annotation
  • R8 renames the methods during minification, causing NoSuchMethodError at
    runtime when JNI looks up "resume" by name
  • Every other JNI-accessed class in the fabric package (FabricUIManager,
    ComponentFactory, StateWrapperImpl, EventEmitterWrapper, EventBeatManager,
    MountItem) already uses DoNotStripAny — this was the only one missing

changelog: [internal] internal

Reviewed By: fkgozali

Differential Revision: D92628923

Summary:
- AnimationBackendChoreographer.resume() and pause() are called from C++ via
  JNI reflection in JAnimationBackendChoreographer.cpp, but the class had no
  ProGuard/R8 protection annotation
- R8 renames the methods during minification, causing NoSuchMethodError at
  runtime when JNI looks up "resume" by name
- Every other JNI-accessed class in the fabric package (FabricUIManager,
  ComponentFactory, StateWrapperImpl, EventEmitterWrapper, EventBeatManager,
  MountItem) already uses DoNotStripAny — this was the only one missing

changelog: [internal] internal

Reviewed By: fkgozali

Differential Revision: D92628923
@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 Feb 7, 2026
@meta-codesync

meta-codesync Bot commented Feb 7, 2026

Copy link
Copy Markdown

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

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @mdvacca in 0dd9e73

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 8, 2026
@meta-codesync

meta-codesync Bot commented Feb 8, 2026

Copy link
Copy Markdown

This pull request has been merged in 0dd9e73.

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. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants