Skip to content

Commit 2079aff

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Fix MissingSoLoaderLibrary: Add @SoLoaderLibrary to UIConstantsProviderBinding
Summary: 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 Differential Revision: D96784679
1 parent a40f748 commit 2079aff

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)