Skip to content

Commit ec0da32

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Fix MissingSoLoaderLibrary: Add @SoLoaderLibrary to InspectorFlags (#56112)
Summary: Pull Request resolved: #56112 Fixed MissingSoLoaderLibrary lint warning in InspectorFlags.kt. Added SoLoaderLibrary("react_devsupportjni") annotation to the class which calls SoLoader.loadLibrary("react_devsupportjni") but was missing the annotation needed for build tools to sanity check JNI merging. Also added the soloader annotation Buck dependency. changelog: [internal] internal Reviewed By: NickGerleman Differential Revision: D96784589 fbshipit-source-id: 7df713db1a50f3d7805cb02a4f4228222fe8c28d
1 parent cb7fc01 commit ec0da32

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/InspectorFlags.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ package com.facebook.react.devsupport
99

1010
import com.facebook.proguard.annotations.DoNotStrip
1111
import com.facebook.soloader.SoLoader
12+
import com.facebook.soloader.annotation.SoLoaderLibrary
1213

1314
/** JNI wrapper for `jsinspector_modern::InspectorFlags`. */
15+
@SoLoaderLibrary("react_devsupportjni")
1416
@DoNotStrip
1517
internal object InspectorFlags {
1618
init {

0 commit comments

Comments
 (0)