Skip to content

Commit 3ccdd8c

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Fix MissingSoLoaderLibrary lint warning in ReactNativeJNISoLoader.kt (#55443)
Summary: Pull Request resolved: #55443 Fixed MissingSoLoaderLibrary lint error in ReactNativeJNISoLoader.kt. Added `SoLoaderLibrary("reactnativejni")` annotation to the class to declare the JNI dependency on the reactnativejni native library. This enables build tools to sanity check JNI merging. Also added the required `com.facebook.soloader.annotation:annotation` dependency to the native-types target in BUCK. changelog: [internal] internal Reviewed By: javache Differential Revision: D91913117 fbshipit-source-id: 96629cf90f04ca1efafe3450eab243583bfcba84
1 parent f412887 commit 3ccdd8c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNativeJNISoLoader.kt

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

1010
import com.facebook.react.common.annotations.internal.InteropLegacyArchitecture
1111
import com.facebook.soloader.SoLoader
12+
import com.facebook.soloader.annotation.SoLoaderLibrary
1213

1314
@InteropLegacyArchitecture
15+
@SoLoaderLibrary("reactnativejni")
1416
internal object ReactNativeJNISoLoader {
1517

1618
@JvmStatic

0 commit comments

Comments
 (0)