Skip to content

Commit

Permalink
updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Dec 5, 2023
1 parent da16fb9 commit ae586de
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions android/src/main/java/land/fx/fula/FulaModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit ae586de

Please sign in to comment.