diff --git a/client/react-native/android/.settings/org.eclipse.buildship.core.prefs b/client/react-native/android/.settings/org.eclipse.buildship.core.prefs index 889f0faf06..e67d5d87e0 100644 --- a/client/react-native/android/.settings/org.eclipse.buildship.core.prefs +++ b/client/react-native/android/.settings/org.eclipse.buildship.core.prefs @@ -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= diff --git a/client/react-native/android/app/.classpath b/client/react-native/android/app/.classpath index 3589094139..eb19361b57 100644 --- a/client/react-native/android/app/.classpath +++ b/client/react-native/android/app/.classpath @@ -1,6 +1,6 @@ - + diff --git a/client/react-native/android/app/.settings/org.eclipse.buildship.core.prefs b/client/react-native/android/app/.settings/org.eclipse.buildship.core.prefs index 4ec4776b69..c4438f2427 100644 --- a/client/react-native/android/app/.settings/org.eclipse.buildship.core.prefs +++ b/client/react-native/android/app/.settings/org.eclipse.buildship.core.prefs @@ -1,2 +1,2 @@ -#Fri Nov 09 15:06:42 CET 2018 +#Fri Nov 16 16:53:16 CET 2018 connection.project.dir=.. diff --git a/client/react-native/android/app/src/main/java/chat/berty/core/CoreModule.java b/client/react-native/android/app/src/main/java/chat/berty/core/CoreModule.java index 53d504d3b3..59ed8e9d67 100644 --- a/client/react-native/android/app/src/main/java/chat/berty/core/CoreModule.java +++ b/client/react-native/android/app/src/main/java/chat/berty/core/CoreModule.java @@ -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); + } + } } diff --git a/client/react-native/android/ble/.settings/org.eclipse.buildship.core.prefs b/client/react-native/android/ble/.settings/org.eclipse.buildship.core.prefs index b1886adb46..bdbaa7165a 100644 --- a/client/react-native/android/ble/.settings/org.eclipse.buildship.core.prefs +++ b/client/react-native/android/ble/.settings/org.eclipse.buildship.core.prefs @@ -1,2 +1,3 @@ -connection.project.dir=.. +#Fri Nov 16 16:53:16 CET 2018 eclipse.preferences.version=1 +connection.project.dir=.. diff --git a/client/react-native/android/core/.settings/org.eclipse.buildship.core.prefs b/client/react-native/android/core/.settings/org.eclipse.buildship.core.prefs new file mode 100644 index 0000000000..c4438f2427 --- /dev/null +++ b/client/react-native/android/core/.settings/org.eclipse.buildship.core.prefs @@ -0,0 +1,2 @@ +#Fri Nov 16 16:53:16 CET 2018 +connection.project.dir=.. diff --git a/client/react-native/android/core/core-sources.jar b/client/react-native/android/core/core-sources.jar index 76a2610cea..8ba011ad92 100644 Binary files a/client/react-native/android/core/core-sources.jar and b/client/react-native/android/core/core-sources.jar differ