Skip to content

Commit dfff5ed

Browse files
committed
Revert "added initial version of mdns discovery"
This reverts commit 4d5c137.
1 parent 93d2a87 commit dfff5ed

File tree

4 files changed

+8307
-8516
lines changed

4 files changed

+8307
-8516
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ repositories {
6262
dependencies {
6363
//noinspection GradleDynamicVersion
6464
implementation "com.facebook.react:react-native:+" // From node_modules
65-
implementation 'com.github.functionland:fula-build-aar:v1.6.0' // From jitpack.io
65+
implementation 'com.github.functionland:fula-build-aar:1.2.1' // From jitpack.io
6666
implementation 'com.github.functionland:wnfs-build-aar:v1.4.1' // From jitpack.io
6767
implementation 'commons-io:commons-io:20030203.000550'
6868
// implementation files('mobile.aar')

android/src/main/java/land/fx/fula/FulaModule.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -345,24 +345,6 @@ private void checkFailedActions(boolean retry, int timeout, Promise promise) thr
345345
}
346346
}
347347

348-
@ReactMethod
349-
public void listPeersFound(Promise promise) {
350-
ThreadUtils.runOnExecutor(() -> {
351-
Log.d("ReactNative", "listPeersFound started");
352-
try {
353-
string res = this.fula.listPeersFound();
354-
355-
//JSONArray jsonArray = new JSONArray(res);
356-
String s = new String(res, StandardCharsets.UTF_8);
357-
Log.d("ReactNative", "ls: res = " + s);
358-
promise.resolve(s);
359-
} catch (Exception e) {
360-
Log.d("get", e.getMessage());
361-
promise.reject(e);
362-
}
363-
});
364-
}
365-
366348
private boolean retryFailedActionsInternal(int timeout) throws Exception {
367349
try {
368350
Log.d("ReactNative", "retryFailedActionsInternal started");
@@ -734,11 +716,7 @@ public void writeFile(String fulaTargetFilename, String localFilename, Promise p
734716
this.rootConfig = config;
735717
this.encrypt_and_store_config();
736718
if (this.fula != null) {
737-
Log.d("ReactNative", "writeFile flsuhing");
738719
this.fula.flush();
739-
Log.d("ReactNative", "writeFile flsuhed");
740-
} else {
741-
Log.d("ReactNative", "writeFile Error: fula is null");
742720
}
743721
promise.resolve(config.getCid());
744722
} else {

example/src/App.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ const App = () => {
3939
203, 243, 211, 78, 120, 114, 199, 1, 197, 134, 6, 91, 87, 152,
4040
];
4141
const privateKeyString = "\\test";
42-
//const bloxAddr = '/dns/relay.dev.fx.land/tcp/4001/p2p/12D3KooWDRrBaAfPwsGJivBoUw5fE7ZpDiyfUjqgiURq2DEcL835/p2p-circuit/p2p/12D3KooWD69C5yX91nPe3tz6HRiuw7Pia4xsxE9xv2CghoyK6MPK';
43-
const bloxAddr = '/ip4/192.168.2.14/tcp/40001/p2p/12D3KooWD69C5yX91nPe3tz6HRiuw7Pia4xsxE9xv2CghoyK6MPK';
42+
const bloxAddr = '/dns/relay.dev.fx.land/tcp/4001/p2p/12D3KooWDRrBaAfPwsGJivBoUw5fE7ZpDiyfUjqgiURq2DEcL835/p2p-circuit/p2p/12D3KooWD69C5yX91nPe3tz6HRiuw7Pia4xsxE9xv2CghoyK6MPK';
4443
const newClient = async () => {
4544
try {
4645
return fula.newClient(

0 commit comments

Comments
 (0)