Migrate BindingsInstaller to kotlin (#37322)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37322

migration of BindingsInstaller to kotlin to ez integration with ReactInstanceDelegate

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: philIip

Differential Revision: D45577886

fbshipit-source-id: 67991b09bf7c719136a615d846d3f7ee3bf359b2
This commit is contained in:
David Vacca
2023-05-09 13:41:53 -07:00
committed by Facebook GitHub Bot
parent 9cceb43c52
commit 1200cdc810
2 changed files with 22 additions and 26 deletions
@@ -1,26 +0,0 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridgeless;
import com.facebook.jni.HybridData;
import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.proguard.annotations.DoNotStripAny;
import com.facebook.soloader.SoLoader;
@DoNotStripAny
public abstract class BindingsInstaller {
static {
SoLoader.loadLibrary("rninstance");
}
@DoNotStrip private final HybridData mHybridData;
protected BindingsInstaller(HybridData hybridData) {
mHybridData = hybridData;
}
}
@@ -0,0 +1,22 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.bridgeless
import com.facebook.jni.HybridData
import com.facebook.proguard.annotations.DoNotStrip
import com.facebook.proguard.annotations.DoNotStripAny
import com.facebook.soloader.SoLoader
@DoNotStripAny
abstract class BindingsInstaller(@field:DoNotStrip private val mHybridData: HybridData) {
companion object {
init {
SoLoader.loadLibrary("rninstance")
}
}
}