mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix MissingSoLoaderLibrary lint warning in ReactNativeJNISoLoader.kt (#55443)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
1 parent
f4128871da
commit
3ccdd8ca33
1 file changed
+2
+2
@@ -9,8 +9,10 @@ package com.facebook.react.bridge
|
||||
|
||||
import com.facebook.react.common.annotations.internal.InteropLegacyArchitecture
|
||||
import com.facebook.soloader.SoLoader
|
||||
import com.facebook.soloader.annotation.SoLoaderLibrary
|
||||
|
||||
@InteropLegacyArchitecture
|
||||
@SoLoaderLibrary("reactnativejni")
|
||||
internal object ReactNativeJNISoLoader {
|
||||
|
||||
@JvmStatic
|
||||
|
||||
Reference in new issue
Block a user