mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add @DoNotStripAny to AnimationBackendChoreographer (#55465)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55465 - 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 fbshipit-source-id: deb7196047e9243cfa702c3d4d96b4431897f097
This commit is contained in:
1 parent
125977196a
commit
0dd9e73be0
1 file changed
+2
+2
@@ -7,6 +7,7 @@
|
||||
|
||||
package com.facebook.react.fabric
|
||||
|
||||
import com.facebook.proguard.annotations.DoNotStripAny
|
||||
import com.facebook.react.bridge.ReactApplicationContext
|
||||
import com.facebook.react.modules.core.ReactChoreographer
|
||||
import com.facebook.react.uimanager.GuardedFrameCallback
|
||||
@@ -17,6 +18,7 @@ internal fun interface AnimationFrameCallback {
|
||||
fun onAnimationFrame(frameTimeMs: Double)
|
||||
}
|
||||
|
||||
@DoNotStripAny
|
||||
internal class AnimationBackendChoreographer(
|
||||
reactApplicationContext: ReactApplicationContext,
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user