Skip to content

Commit

Permalink
Revert D8786185: [fabric][android] Create CXX Binding
Browse files Browse the repository at this point in the history
Differential Revision:
D8786185

Original commit changeset: d04208f07813

fbshipit-source-id: 1fc1648146ea9784bb364c4e56e8664bb8bb655f
  • Loading branch information
Ben Blackburne authored and facebook-github-bot committed Jul 17, 2018
1 parent bf22d90 commit f5f27b3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@

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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
*/
@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);
Expand Down Expand Up @@ -98,7 +98,6 @@ public FabricUIManager(
mJSContext = jsContext;
}

@Override
public void setBinding(FabricBinding binding) {
mBinding = binding;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
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;
Expand Down Expand Up @@ -60,7 +58,7 @@ public FabricJSCBinding() {
}

@Override
public void installFabric(JavaScriptContextHolder jsContext, FabricBinder fabricModule) {
public void installFabric(JavaScriptContextHolder jsContext, FabricUIManager fabricModule) {
fabricModule.setBinding(this);
installFabric(jsContext.get(), fabricModule);
}
Expand Down

0 comments on commit f5f27b3

Please sign in to comment.