mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
9cceb43c52
commit
1200cdc810
-26
@@ -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;
|
||||
}
|
||||
}
|
||||
+22
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user