Skip to content

Commit 9745dea

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix DoNotStripAnnotationUsage: Replace @DoNotStrip with @DoNotStripAny (facebook#55412)
Summary: Fixed DoNotStripAnnotationUsage lint error in FabricUIManagerBinding.kt. The class has many members (external methods like initHybrid, installFabricUIManager, etc.) 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: D91840163
1 parent d494510 commit 9745dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ package com.facebook.react.fabric
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.bridge.NativeMap
1414
import com.facebook.react.bridge.RuntimeExecutor
1515
import com.facebook.react.bridge.RuntimeScheduler
1616
import com.facebook.react.fabric.events.EventBeatManager
1717
import com.facebook.react.uimanager.PixelUtil.getDisplayMetricDensity
1818

19-
@DoNotStrip
19+
@DoNotStripAny
2020
@SuppressLint("MissingNativeLoadLibrary")
2121
internal class FabricUIManagerBinding : HybridClassBase() {
2222
init {

0 commit comments

Comments
 (0)