Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #351 from shocknet/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Daniel Lugo authored Nov 5, 2020
2 parents f62d4c2 + 5b710fd commit 123c9b0
Show file tree
Hide file tree
Showing 295 changed files with 10,733 additions and 7,380 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"typescript.tsdk": "node_modules/typescript/lib",
"cSpell.words": [
"unfollow"
]
],
"editor.formatOnSave": true
}
Binary file added android/app/src/main/assets/fonts/AntDesign.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Entypo.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/EvilIcons.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Feather.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Fontisto.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Foundation.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Ionicons.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Octicons.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/ShockIcons.ttf
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Zocial.ttf
Binary file not shown.
13 changes: 13 additions & 0 deletions android/app/src/main/java/com/shockwallet/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import android.os.Bundle;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.ReactRootView;
import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView;
import com.zoontek.rnbootsplash.RNBootSplash;

public class MainActivity extends ReactActivity {
Expand All @@ -15,6 +18,16 @@ protected String getMainComponentName() {
return "shockwallet";
}

@Override
protected ReactActivityDelegate createReactActivityDelegate() {
return new ReactActivityDelegate(this, getMainComponentName()) {
@Override
protected ReactRootView createRootView() {
return new RNGestureHandlerEnabledRootView(MainActivity.this);
}
};
}

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ public void call(final Object... args) {
}
lastTX = last;
String id = last.substring(0,5)+"...";
doNotification("New Transaction","value: "+res.getString("amount")+"\nTx: "+last,R.drawable.icon,"");
int value = Integer.parseInt(res.getString("amount"));
float valueBTC = value / 100000000f;
doNotification("Transaction confirmed! "+String.valueOf(valueBTC)+" BTC","",R.drawable.icon,"");
}catch (Exception e){
Log.d(TAG,"Tx err"+e.toString());
}
Expand All @@ -122,7 +124,7 @@ public void call(final Object... args) {
return;
}

doNotification("New Invoice","value: "+res.getString("value"),R.drawable.icon,"");
doNotification("Payment Received! "+res.getString("value")+" sats","",R.drawable.icon,"");
}catch (Exception e){
Log.d(TAG,"Inv err"+e.toString());
}
Expand Down Expand Up @@ -476,7 +478,7 @@ public void onResponse( Response response) throws IOException {
NotificationService.ApiPubKey = resJson.getString("APIPublicKey");

//mSocket = IO.socket("http://"+NotificationService.ip+"?x-shockwallet-device-id=7601a723-b6d4-4020-95a6-6113fb40e2f8");
mSocket = IO.socket("http://"+NotificationService.ip+"?x-shockwallet-device-id="+deviceId+"&IS_LND_SOCKET=true&IS_NOTIFICATIONS_SOCKET=true");
mSocket = IO.socket("http://"+NotificationService.ip+"/default?x-shockwallet-device-id="+deviceId+"&IS_LND_SOCKET=true&IS_NOTIFICATIONS_SOCKET=true");
mSocket.on("transaction:new", newTransaction);
mSocket.on("invoice:new", newInvoice);
mSocket.on("ON_CHATS", newChat);
Expand Down
59 changes: 0 additions & 59 deletions app/actions/FeedAction.js

This file was deleted.

23 changes: 0 additions & 23 deletions app/actions/UsersActions.js

This file was deleted.

109 changes: 0 additions & 109 deletions app/actions/feed.js

This file was deleted.

46 changes: 0 additions & 46 deletions app/actions/index.ts

This file was deleted.

9 changes: 0 additions & 9 deletions app/actions/me.ts

This file was deleted.

59 changes: 0 additions & 59 deletions app/actions/singleFeed.js

This file was deleted.

Binary file added app/assets/fonts/Montserrat-Black.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-BlackItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-Bold.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-BoldItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-ExtraBold.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-ExtraLight.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-ExtraLightItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-Italic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-Light.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-LightItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-Medium.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-MediumItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-Regular.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-SemiBold.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-SemiBoldItalic.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-Thin.ttf
Binary file not shown.
Binary file added app/assets/fonts/Montserrat-ThinItalic.ttf
Binary file not shown.
Loading

0 comments on commit 123c9b0

Please sign in to comment.