Skip to content

Commit ec86b73

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Fix MissingSoLoaderLibrary: Add @SoLoaderLibrary to ReactNativeJniCommonSoLoader (#56037)
Summary: Pull Request resolved: #56037 Fixed MissingSoLoaderLibrary lint error in ReactNativeJniCommonSoLoader.kt. Added SoLoaderLibrary("reactnativejni_common") annotation to the class which calls SoLoader.loadLibrary("reactnativejni_common") but was missing the annotation needed for build tools to sanity check JNI merging. changelog: [internal] internal Reviewed By: javache Differential Revision: D95412980 fbshipit-source-id: 73f31a36c1615997a4fb3c2be96dff90eb77e674
1 parent 251fb11 commit ec86b73

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

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

1010
import com.facebook.soloader.SoLoader
11+
import com.facebook.soloader.annotation.SoLoaderLibrary
1112

13+
@SoLoaderLibrary("reactnativejni_common")
1214
internal object ReactNativeJniCommonSoLoader {
1315

1416
@JvmStatic

0 commit comments

Comments
 (0)