diff --git a/android/build.gradle b/android/build.gradle index f1bfc00..022ba41 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -94,7 +94,7 @@ dependencies { // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" - implementation 'com.github.functionland:fula-build-aar:v1.19.0' // From jitpack.io + implementation 'com.github.functionland:fula-build-aar:v1.20.0' // From jitpack.io implementation 'com.github.functionland:wnfs-android:v1.8.1' // From jitpack.io implementation 'commons-io:commons-io:20030203.000550' implementation 'commons-codec:commons-codec:1.15' diff --git a/android/src/main/java/land/fx/fula/FulaModule.java b/android/src/main/java/land/fx/fula/FulaModule.java index fbce891..4ef09fe 100755 --- a/android/src/main/java/land/fx/fula/FulaModule.java +++ b/android/src/main/java/land/fx/fula/FulaModule.java @@ -1151,7 +1151,7 @@ public void shutdown(Promise promise) { //////////////////////ANYTHING BELOW IS FOR BLOCKCHAIN///// /////////////////////////////////////////////////////////// @ReactMethod - public void GetAccount(Promise promise) { + public void getAccount(Promise promise) { ThreadUtils.runOnExecutor(() -> { Log.d("ReactNative", "getAccount called "); try { @@ -1166,9 +1166,9 @@ public void GetAccount(Promise promise) { } @ReactMethod - public void AssetsBalance(String account, String assetId, String classId, Promise promise) { + public void assetsBalance(String account, String assetId, String classId, Promise promise) { ThreadUtils.runOnExecutor(() -> { - Log.d("ReactNative", "getAccount called "); + Log.d("ReactNative", "assetsBalance called "); try { byte[] result = this.fula.assetsBalance(account, assetId, classId); String resultString = toString(result); diff --git a/example/src/App.tsx b/example/src/App.tsx index 65c0692..ed06e74 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -58,8 +58,8 @@ const App = () => { const bloxPeerId_laptop = '12D3KooWLGatFxDzMrKd4S6UC4GAtuM4zcFJW8RPuMR9SH7j46A8'; - //const bloxAddr = '/dns/relay.dev.fx.land/tcp/4001/p2p/12D3KooWDRrBaAfPwsGJivBoUw5fE7ZpDiyfUjqgiURq2DEcL835/p2p-circuit/p2p/' + bloxPeerId_laptop; - const bloxAddr = '/ip4/192.168.2.14/tcp/40001/p2p/' + bloxPeerId_laptop; + const bloxAddr = '/dns/relay.dev.fx.land/tcp/4001/p2p/12D3KooWDRrBaAfPwsGJivBoUw5fE7ZpDiyfUjqgiURq2DEcL835/p2p-circuit/p2p/' + bloxPeerId_laptop; + //const bloxAddr = '/ip4/192.168.2.14/tcp/40001/p2p/' + bloxPeerId_laptop; const initFula = async () => { try { diff --git a/package.json b/package.json index 2a08749..138796d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@functionland/react-native-fula", - "version": "1.19.0", + "version": "1.20.0", "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",