Skip to content

Commit

Permalink
Revert "added mdns discovery"
Browse files Browse the repository at this point in the history
This reverts commit e3c05f8.
  • Loading branch information
ehsan6sha committed May 20, 2023
1 parent e3c05f8 commit 93d2a87
Show file tree
Hide file tree
Showing 5 changed files with 801 additions and 701 deletions.
7 changes: 4 additions & 3 deletions android/src/main/java/land/fx/fula/FulaModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,12 @@ public void listPeersFound(Promise promise) {
ThreadUtils.runOnExecutor(() -> {
Log.d("ReactNative", "listPeersFound started");
try {
String res = this.fula.listPeersFound();
string res = this.fula.listPeersFound();

//JSONArray jsonArray = new JSONArray(res);
Log.d("ReactNative", "listPeersFound: res = " + res);
promise.resolve(res);
String s = new String(res, StandardCharsets.UTF_8);
Log.d("ReactNative", "ls: res = " + s);
promise.resolve(s);
} catch (Exception e) {
Log.d("get", e.getMessage());
promise.reject(e);
Expand Down
3 changes: 1 addition & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * as fula from './protocols/fula';
export * as blox from './protocols/blox';
export * as blockchain from './protocols/blockchain';
export * as chainApi from './protocols/chain-api';
export * as chainApi from './protocols/chain-api';
1 change: 0 additions & 1 deletion src/interfaces/fulaNativeModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ interface FulaNativeModule {
get: (key: string) => Promise<string>;
has: (key: Uint8Array) => Promise<boolean>;
push: () => Promise<string>;
listFoundPeers: () => Promise<string>;
put: (content: string, codec: string) => Promise<string>;
mkdir: (path: string) => Promise<string>;
writeFileContent: (path: string, content: string) => Promise<string>;
Expand Down
19 changes: 0 additions & 19 deletions src/protocols/blox.ts

This file was deleted.

Loading

0 comments on commit 93d2a87

Please sign in to comment.