Skip to content

Commit b5b3982

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Fix MissingSoLoaderLibrary: Add @SoLoaderLibrary to UIConstantsProviderBinding (#56113)
Summary: Pull Request resolved: #56113 Fixed MissingSoLoaderLibrary lint warning in UIConstantsProviderBinding.kt. Added SoLoaderLibrary("uimanagerjni") annotation to the class which calls SoLoader.loadLibrary("uimanagerjni") but was missing the annotation needed for build tools to sanity check JNI merging. Also added the soloader annotation Buck dependency. changelog: [internal] internal Reviewed By: NickGerleman Differential Revision: D96784679 fbshipit-source-id: 7d290216494ed5bc3c433adf1cea362948d955e7
1 parent ec0da32 commit b5b3982

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIConstantsProviderBinding.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ import com.facebook.proguard.annotations.DoNotStripAny
1111
import com.facebook.react.bridge.NativeMap
1212
import com.facebook.react.bridge.RuntimeExecutor
1313
import com.facebook.soloader.SoLoader
14+
import com.facebook.soloader.annotation.SoLoaderLibrary
1415
import kotlin.jvm.JvmStatic
1516

17+
@SoLoaderLibrary("uimanagerjni")
1618
@DoNotStripAny
1719
internal object UIConstantsProviderBinding {
1820
init {

0 commit comments

Comments
 (0)