From 2675a5fcd448106446462ec5eb5b9977b97ebec3 Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Sun, 16 Jul 2023 02:08:42 -0400 Subject: [PATCH] updated wnfs 1.7.3 --- android/build.gradle | 2 +- android/src/main/java/land/fx/fula/FulaModule.java | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 45ed1c9..eee09c7 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -63,7 +63,7 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" // From node_modules implementation 'com.github.functionland:fula-build-aar:1.13.0' // From jitpack.io - implementation 'com.github.functionland:wnfs-build-aar:v1.7.2' // From jitpack.io + implementation 'com.github.functionland:wnfs-android:v1.7.3' // From jitpack.io implementation 'commons-io:commons-io:20030203.000550' implementation 'commons-codec:commons-codec:1.15' // implementation files('mobile.aar') diff --git a/android/src/main/java/land/fx/fula/FulaModule.java b/android/src/main/java/land/fx/fula/FulaModule.java index 35e2ca9..c0a0da6 100755 --- a/android/src/main/java/land/fx/fula/FulaModule.java +++ b/android/src/main/java/land/fx/fula/FulaModule.java @@ -756,7 +756,7 @@ public void writeFile(String fulaTargetFilename, String localFilename, Promise p try { if (this.client != null) { Log.d("ReactNative", "writeFileFromPath started: this.rootConfig.getCid=" + this.rootConfig.getCid()+ ", fulaTargetFilename="+fulaTargetFilename + ", localFilename="+localFilename); - land.fx.wnfslib.Config config = Fs.writeFileFromPath(this.client, this.rootConfig.getCid(), fulaTargetFilename, localFilename); + land.fx.wnfslib.Config config = Fs.writeFileStreamFromPath(this.client, this.rootConfig.getCid(), fulaTargetFilename, localFilename); if(config != null) { this.rootConfig = config; this.encrypt_and_store_config(); diff --git a/package.json b/package.json index 200788d..8885624 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@functionland/react-native-fula", - "version": "1.12.0", + "version": "1.12.1", "description": "This package is a bridge to use the Fula libp2p protocols in the react-native which is using wnfs", "main": "lib/commonjs/index", "module": "lib/module/index",