From 56683b0c777413e6d76fdb6494295922ae3d4a13 Mon Sep 17 00:00:00 2001 From: Lulu Wu Date: Wed, 18 Oct 2023 10:30:45 -0700 Subject: [PATCH] Add @DoNotStripAny to JSTimerExecutor Summary: RNTester release build is crashing as following, this diff add DoNotStripAny to JSTimerExecutor to avoid over-stripping for release build. {F1124087084} Changelog: [Android][Changed] - Add DoNotStripAny to JSTimerExecutor Reviewed By: cortinico Differential Revision: D50410412 fbshipit-source-id: 84ba72a43514cbf64270ac656c55c5a7aa082948 --- .../java/com/facebook/react/runtime/JSTimerExecutor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/JSTimerExecutor.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/JSTimerExecutor.java index 69cffd5cfa9229..e93e749295843a 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/JSTimerExecutor.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/JSTimerExecutor.java @@ -9,20 +9,21 @@ import com.facebook.infer.annotation.Nullsafe; import com.facebook.jni.HybridData; -import com.facebook.jni.annotations.DoNotStrip; +import com.facebook.jni.annotations.DoNotStripAny; import com.facebook.react.bridge.WritableArray; import com.facebook.react.bridge.WritableNativeArray; import com.facebook.react.modules.core.JavaScriptTimerExecutor; import com.facebook.soloader.SoLoader; @Nullsafe(Nullsafe.Mode.LOCAL) +@DoNotStripAny class JSTimerExecutor implements JavaScriptTimerExecutor { static { SoLoader.loadLibrary("rninstance"); } - @DoNotStrip private final HybridData mHybridData; + private final HybridData mHybridData; public JSTimerExecutor(HybridData hybridData) { mHybridData = hybridData;