Skip to content

Commit 1f6d57f

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Fix DoNotStripAnnotationUsage: Replace @DoNotStrip with @DoNotStripAny (#55374)
Summary: Pull Request resolved: #55374 Fixed DoNotStripAnnotationUsage lint error in EventBeatManager.kt. The class has members (initHybrid, tick) that need to be kept, so DoNotStripAny is more appropriate than DoNotStrip which only keeps the directly annotated element. changelog: [internal] internal Reviewed By: javache Differential Revision: D91839477 fbshipit-source-id: 8c9dc90f1b0dc8bb1e91cfa5ee5dfffb22378292
1 parent 905fa24 commit 1f6d57f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/events

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/events/EventBeatManager.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ package com.facebook.react.fabric.events
99

1010
import android.annotation.SuppressLint
1111
import com.facebook.jni.HybridClassBase
12-
import com.facebook.proguard.annotations.DoNotStrip
12+
import com.facebook.proguard.annotations.DoNotStripAny
1313
import com.facebook.react.fabric.FabricSoLoader
1414
import com.facebook.react.uimanager.events.BatchEventDispatchedListener
1515

1616
/**
1717
* Class that acts as a proxy between the list of EventBeats registered in C++ and the Android side.
1818
*/
19-
@DoNotStrip
19+
@DoNotStripAny
2020
@SuppressLint("MissingNativeLoadLibrary")
2121
internal class EventBeatManager : HybridClassBase(), BatchEventDispatchedListener {
2222
init {

0 commit comments

Comments
 (0)