Skip to content

Commit 61d0ab5

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix DoNotStripAnnotationUsage: Replace @DoNotStrip with @DoNotStripAny (#55374)
Summary: 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
1 parent 2510d0d commit 61d0ab5

File tree

1 file changed

+2
-2
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/events

1 file changed

+2
-2
lines changed

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)