Skip to content

Commit

Permalink
feat(devtools): added binding JS -> Java -> Go
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddi committed Nov 19, 2018
1 parent dc61278 commit 0afc918
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 5 deletions.
@@ -1,3 +1,3 @@
#Fri Nov 09 15:06:42 CET 2018
connection.project.dir=
#Fri Nov 16 16:53:15 CET 2018
eclipse.preferences.version=1
connection.project.dir=
2 changes: 1 addition & 1 deletion client/react-native/android/app/.classpath
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-10/"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
@@ -1,2 +1,2 @@
#Fri Nov 09 15:06:42 CET 2018
#Fri Nov 16 16:53:16 CET 2018
connection.project.dir=..
Expand Up @@ -153,4 +153,31 @@ public void stopBot(Promise promise) {
promise.reject(err);
}
}

@ReactMethod
public void getLocalGRPCInfos(Promise promise) {
promise.resolve(Core.getLocalGRPCInfos());
}

@ReactMethod
public void startLocalGRPC(Promise promise) {
try {
Core.startLocalGRPC();
promise.resolve(null);
} catch (Exception err) {
this.logger.format(Level.ERROR, this.getName(), "Unable to update start local gRPC: %s", err);
promise.reject(err);
}
}

@ReactMethod
public void stopLocalGRPC(Promise promise) {
try {
Core.stopLocalGRPC();
promise.resolve(null);
} catch (Exception err) {
this.logger.format(Level.ERROR, this.getName(), "Unable to update stop local gRPC: %s", err);
promise.reject(err);
}
}
}
@@ -1,2 +1,3 @@
connection.project.dir=..
#Fri Nov 16 16:53:16 CET 2018
eclipse.preferences.version=1
connection.project.dir=..
@@ -0,0 +1,2 @@
#Fri Nov 16 16:53:16 CET 2018
connection.project.dir=..
Binary file modified client/react-native/android/core/core-sources.jar
Binary file not shown.

0 comments on commit 0afc918

Please sign in to comment.