From 3ccdd8ca33cda67d533177ec2c8502624ce5e2d1 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Sun, 8 Feb 2026 15:29:11 -0800 Subject: [PATCH] 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 --- .../java/com/facebook/react/bridge/ReactNativeJNISoLoader.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNativeJNISoLoader.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNativeJNISoLoader.kt index 8fe22332b50..aeb4b2c9fb9 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNativeJNISoLoader.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactNativeJNISoLoader.kt @@ -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