Skip to content

Commit 665b801

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Fix MissingSoLoaderLibrary: Add @SoLoaderLibrary to InspectorNetworkRequestListener (#56039)
Summary: Pull Request resolved: #56039 Fixed MissingSoLoaderLibrary lint error in InspectorNetworkRequestListener.kt. Added SoLoaderLibrary("reactnativejni") annotation to the class which calls SoLoader.loadLibrary("reactnativejni") but was missing the annotation needed for build tools to sanity check JNI merging. changelog: [internal] internal Differential Revision: D95413051 fbshipit-source-id: 826ded6624cf31f7c639b9aabddea38b49d56b13
1 parent 831e5fd commit 665b801

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ import com.facebook.jni.HybridData
1111
import com.facebook.proguard.annotations.DoNotStrip
1212
import com.facebook.proguard.annotations.DoNotStripAny
1313
import com.facebook.soloader.SoLoader
14+
import com.facebook.soloader.annotation.SoLoaderLibrary
1415

1516
/**
1617
* JNI wrapper for `jsinspectormodern::NetworkRequestListener`. Handles the `ScopedExecutor`
1718
* callback use on the C++ side.
1819
*/
20+
@SoLoaderLibrary("reactnativejni")
1921
@DoNotStripAny
2022
internal class InspectorNetworkRequestListener(
2123
@field:DoNotStrip private val mHybridData: HybridData

0 commit comments

Comments
 (0)