Skip to content

Commit 79891b3

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix MissingSoLoaderLibrary: Add @SoLoaderLibrary to InspectorNetworkRequestListener
Summary: 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
1 parent f486317 commit 79891b3

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)