Skip to content

Commit c2d4aad

Browse files
Lulu Wucortinico
authored andcommitted
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
1 parent abfdf2c commit c2d4aad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/JSTimerExecutor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@
99

1010
import com.facebook.infer.annotation.Nullsafe;
1111
import com.facebook.jni.HybridData;
12-
import com.facebook.jni.annotations.DoNotStrip;
12+
import com.facebook.jni.annotations.DoNotStripAny;
1313
import com.facebook.react.bridge.WritableArray;
1414
import com.facebook.react.bridge.WritableNativeArray;
1515
import com.facebook.react.modules.core.JavaScriptTimerExecutor;
1616
import com.facebook.soloader.SoLoader;
1717

1818
@Nullsafe(Nullsafe.Mode.LOCAL)
19+
@DoNotStripAny
1920
class JSTimerExecutor implements JavaScriptTimerExecutor {
2021

2122
static {
2223
SoLoader.loadLibrary("rninstance");
2324
}
2425

25-
@DoNotStrip private final HybridData mHybridData;
26+
private final HybridData mHybridData;
2627

2728
public JSTimerExecutor(HybridData hybridData) {
2829
mHybridData = hybridData;

0 commit comments

Comments
 (0)