@functionland/react-native-fula 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -170,6 +170,9 @@ public class FulaModule extends ReactContextBaseJavaModule {
170
170
  Log.d("ReactNative", "checkConnection failed with Error: " + e.getMessage());
171
171
  promise.resolve(false);
172
172
  }
173
+ } else {
174
+ Log.d("ReactNative", "checkConnection failed with Error: " + "fula is null");
175
+ promise.resolve(false);
173
176
  }
174
177
  });
175
178
  }
@@ -179,12 +182,13 @@ public class FulaModule extends ReactContextBaseJavaModule {
179
182
  Log.d("ReactNative", "newClient started");
180
183
  ThreadUtils.runOnExecutor(() -> {
181
184
  try {
182
- Log.d("ReactNative", "newClient storePath= " + storePath);
185
+ Log.d("ReactNative", "newClient storePath= " + storePath + " bloxAddr= " + bloxAddr + " exchange= " + exchange + " autoFlush= " + autoFlush + " useRelay= " + useRelay + " refresh= " + refresh);
183
186
  byte[] identity = toByte(identityString);
184
187
  Log.d("ReactNative", "newClient identity= " + identityString);
185
188
  this.newClientInternal(identity, storePath, bloxAddr, exchange, autoFlush, useRelay, refresh);
186
189
  //String objString = Arrays.toString(obj);
187
190
  String peerId = this.fula.id();
191
+ Log.d("ReactNative", "newClient peerId= " + peerId);
188
192
  promise.resolve(peerId);
189
193
  } catch (Exception e) {
190
194
  Log.d("ReactNative", "newClient failed with Error: " + e.getMessage());
@@ -203,8 +207,10 @@ public class FulaModule extends ReactContextBaseJavaModule {
203
207
  if (filesystemCheck) {
204
208
  if (this.client != null && this.rootConfig != null && !this.rootConfig.getCid().isEmpty()) {
205
209
  initialized = true;
210
+ Log.d("ReactNative", "isReady is true with filesystem check");
206
211
  }
207
212
  } else {
213
+ Log.d("ReactNative", "isReady is true without filesystem check");
208
214
  initialized = true;
209
215
  }
210
216
  }
@@ -267,6 +273,7 @@ public class FulaModule extends ReactContextBaseJavaModule {
267
273
  try {
268
274
  this.fula.connectToBlox();
269
275
  connectionStatus.set(true);
276
+ Log.d("ReactNative", "checkConnectionInternal succeeded ");
270
277
  } catch (Exception e) {
271
278
  Log.d("ReactNative", "checkConnectionInternal failed with Error: " + e.getMessage());
272
279
  }
@@ -502,7 +509,7 @@ public class FulaModule extends ReactContextBaseJavaModule {
502
509
  } else {
503
510
  fulaConfig.setStorePath(storePath);
504
511
  }
505
- Log.d("ReactNative", "storePath is set: " + fulaConfig.getStorePath());
512
+ Log.d("ReactNative", "newClientInternal storePath is set: " + fulaConfig.getStorePath());
506
513
 
507
514
  byte[] peerIdentity = this.createPeerIdentity(identity);
508
515
  fulaConfig.setIdentity(peerIdentity);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionland/react-native-fula",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "This package is a bridge to use the Fula libp2p protocols in the react-native which is using wnfs",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",