Revert D8786185: [fabric][android] Create CXX Binding
Differential Revision: D8786185 Original commit changeset: d04208f07813 fbshipit-source-id: 1fc1648146ea9784bb364c4e56e8664bb8bb655f
This commit is contained in:
parent
bf22d904fe
commit
f5f27b3687
|
@ -1,14 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
*
|
||||
* 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.fabric;
|
||||
|
||||
public interface FabricBinder {
|
||||
|
||||
void setBinding(FabricBinding binding);
|
||||
|
||||
}
|
|
@ -9,11 +9,10 @@ package com.facebook.react.fabric;
|
|||
|
||||
import com.facebook.react.bridge.JavaScriptContextHolder;
|
||||
import com.facebook.react.bridge.NativeMap;
|
||||
import com.facebook.react.bridge.UIManager;
|
||||
|
||||
public interface FabricBinding {
|
||||
|
||||
void installFabric(JavaScriptContextHolder jsContext, FabricBinder fabricBinder);
|
||||
void installFabric(JavaScriptContextHolder jsContext, FabricUIManager fabricModule);
|
||||
|
||||
void releaseEventTarget(long jsContextNativePointer, long eventTargetPointer);
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ import javax.annotation.Nullable;
|
|||
*/
|
||||
@SuppressWarnings("unused") // used from JNI
|
||||
@DoNotStrip
|
||||
public class FabricUIManager implements UIManager, JSHandler, FabricBinder {
|
||||
public class FabricUIManager implements UIManager, JSHandler {
|
||||
|
||||
private static final String TAG = FabricUIManager.class.getSimpleName();
|
||||
private static final boolean DEBUG = ReactBuildConfig.DEBUG || PrinterHolder.getPrinter().shouldDisplayLogMessage(ReactDebugOverlayTags.FABRIC_UI_MANAGER);
|
||||
|
@ -98,7 +98,6 @@ public class FabricUIManager implements UIManager, JSHandler, FabricBinder {
|
|||
mJSContext = jsContext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBinding(FabricBinding binding) {
|
||||
mBinding = binding;
|
||||
}
|
||||
|
|
|
@ -10,8 +10,6 @@ package com.facebook.react.fabric.jsc;
|
|||
import com.facebook.jni.HybridData;
|
||||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
import com.facebook.react.bridge.JavaScriptContextHolder;
|
||||
import com.facebook.react.bridge.UIManager;
|
||||
import com.facebook.react.fabric.FabricBinder;
|
||||
import com.facebook.react.fabric.FabricBinding;
|
||||
import com.facebook.react.fabric.FabricUIManager;
|
||||
import com.facebook.react.bridge.NativeMap;
|
||||
|
@ -60,7 +58,7 @@ public class FabricJSCBinding implements FabricBinding {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void installFabric(JavaScriptContextHolder jsContext, FabricBinder fabricModule) {
|
||||
public void installFabric(JavaScriptContextHolder jsContext, FabricUIManager fabricModule) {
|
||||
fabricModule.setBinding(this);
|
||||
installFabric(jsContext.get(), fabricModule);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue