Commit graph

557 commits

Author SHA1 Message Date
Severiano Jaramillo
a42736b738 Improved Nodes Dialog.
- Made a couple of improvements to the Nodes Dialog in the Settings, so that it complies with the Nodes Dialog in PalmPay.
2019-08-29 11:46:22 -05:00
Severiano Jaramillo
e2637ddfa4 Keep the app connected to the best node.
- Added a recurrent method that verifies every minute that the app is connected to the best node, and if that is not the case then it requests a reconnection.
2019-08-29 11:06:17 -05:00
Severiano Jaramillo
855f47e793 Generate QR in background thread.
- Moved the logic to generate the QR Code image from ReceiveTransactionFragment to its ViewModel (ReceiveTransactionViewModel), and used coroutines to send that process to a background thread to make sure this does not freeze the UI.
2019-08-27 13:47:25 -05:00
Severiano Jaramillo
2a88821710 Create ReceiveTransactionViewModel.
- The ReceiveTransactionFragment was using two ViewModels, which is not recommended. According to Google's MVVM guidelines, each activity/fragment should have only one ViewModel and that ViewModel should be coupled to only one activity/fragment. For that reason the methods used in the two ViewModels in ReceiveTransactionFragment were merged into ReceiveTransactionViewModel.
2019-08-27 11:21:26 -05:00
Severiano Jaramillo
7603546424 Fix NetworkService connection issue.
- The NetworkServiceManager expects a call to onActivityResumed after it has been configured to start the connection with the NetworkManager. But because we are using a single activity architecture, the call to onActivityResumed the first time the app starts is called before configuring the NetworkServiceManager thus leaving the NetworkService disconnected until another onResume activity lifecycle event is received. A fake call to onActivityResumed in NetworkServiceManager was added right after it has been configured in BitsyApplication to address this issue.
2019-08-26 11:44:08 -05:00
Severiano Jaramillo
765ed13a6a Add the nodes WS to Bitsy.
- Renamed the MerchantsWebservice to BitsyWebservice because it is now going to serve as a source of information of more than just merchants and tellers, but also the nodes the app is gonna connect to.
- Created new NodeRepository which will be in charge of accessing and updating the nodes database table with the information obtained from the webservice.
- Bitsy is now going to try to obtain the list of nodes it is going to try to connect to from the dabatase and use a hardcoded list as a fallback. The list of nodes in the database is updated regularly as well as their respective latency, so that in future app's startups it can use those latencies to immediately connect to the best node in the last app session.
2019-08-23 14:41:00 -05:00
Severiano Jaramillo
b077de95ac Create nodes database table.
- Added the library dependency to use Kotlin Coroutines with Room.
- Created the Node Room Entity, which will create the nodes database table.
- Created NodeDao, which will be responsible to access the Room entity (nodes database table).
- Created a Room database migration, to create the nodes database table in existing instalations updating to the new version.
2019-08-23 12:48:58 -05:00
Severiano Jaramillo
3841f53b14 Update kotlin version to 1.3.50. 2019-08-23 11:52:38 -05:00
Severiano Jaramillo
1abbe95083 Add Kotlin's Parcelize to FilterOptions.
- Enabled Kotlin's Parcelize annotation and used it to easily make FilterOptions Parcelable.
- Converted the ServiceGenerator class to Kotlin. This is a helper class that generates instances of Retrofit Services.
2019-08-22 11:41:05 -05:00
Severiano Jaramillo
31add11412 Update Kotlin version. 2019-08-22 11:08:04 -05:00
Severiano Jaramillo
2b4b520c5d Update a bunch of libraries.
- The project had been stale for a couple of months, so a lot of libraries were outdated. I updated most of the outdated libraries and verified everything kept working correctly.
- Simplified the ServiceGenerator, removing some stuff that is not used.
2019-08-22 11:02:09 -05:00
Severiano Jaramillo
1e75e369dc Avoid crash in Transactions' FilterOptionsDialog.
- This crash was being caused when the user tried to filter the transactions in the Transactions screen, but the user has no balances (existent or downloaded). The app was not prepared to handle that case.
2019-08-21 17:48:51 -05:00
Severiano Jaramillo
31073e2acf Fix crash in BalancesFragment.
- The crash was happening in a very weird scenario, but it was good because it forced us to search an alternative to update the BalancesFragment when the user navigates back to the HomeFragment. The solution was to use the childFragmentManager instead of the fragmentManager to create the PagerAdapter used in the ViewPager that displays the BalancesFragment. Basically, because we are using nested fragments we need to use the childFragmentManager instead of just the fragmentManager, to use the correct LyfeCycle events.
2019-08-21 15:09:59 -05:00
Severiano Jaramillo
6482b31971 Avoid crash in TransferDetailsAdapter.
- This is the adapter that populates the list of transactions in the TransactionsFragment, the crash was happening when the user tapped two or more items in the list at the same time. When that happens only the first item tapped opens its corresponding eReceipt correctly but the remaining ones throw an excpeption which was not being handled correctly and causing a crash.
2019-08-21 14:40:38 -05:00
Severiano Jaramillo
39a3e6b7d4 Avoid crash in SettingsFragment
- Avoided crash in SettingsFragment when trying to decrypt the WIF, but logged the exception to Crashlytics in case we find out this problem persists.
2019-08-21 14:05:11 -05:00
Severiano Jaramillo
ae3498e103 Avoid crash in SendTransactionFragment
- Avoided crash in SendTransactionFragment when trying to decrypt the WIF, but logged the exception to Crashlytics in case we find out this problem persists.
2019-08-21 13:56:16 -05:00
Severiano Jaramillo
54c8bbce19 Fix Crashlytics proguard rules.
- Fixed crashlytics Retrofit models proguard rules.
- Updated the Gradle plugin version.
- Improved readability of Asset and TransferDetail DAOs (Database Data Access Objects).
2019-08-21 13:34:49 -05:00
Agorise
8ca93096cb
Update README.md 2019-06-12 17:04:05 -05:00
Agorise
0ba1ee1a44
Update README.md 2019-06-12 17:01:39 -05:00
Agorise
93a09335ce
Update README.md 2019-06-12 17:00:53 -05:00
Agorise
24ec321a51
Update README.md 2019-06-12 16:59:51 -05:00
Agorise
805a4b517e
Update FUNDING.yml 2019-06-12 16:50:04 -05:00
Agorise
c42a474fdd
Update FUNDING.yml 2019-06-12 16:49:26 -05:00
Agorise
392b764480
Update FUNDING.yml 2019-06-12 16:48:44 -05:00
Agorise
6bacf752b2
Update FUNDING.yml 2019-06-12 16:48:17 -05:00
Agorise
be04815a07
Update FUNDING.yml 2019-06-12 16:46:28 -05:00
Agorise
fd9744d3c7
Create FUNDING.yml 2019-06-12 16:41:59 -05:00
Severiano Jaramillo
6df56b068b Improved transactions filtering algorithm in TransactionsFragment, to include the memo when searching with a text query. 2019-05-06 13:28:28 -05:00
Severiano Jaramillo
1528960bed Added a node to the list of nodes the app can connect to. 2019-04-26 16:53:06 -05:00
Severiano Jaramillo
7c8f5d621e Bumped versionName to 0.12.1-beta and versionCode to 7 2019-04-26 16:23:57 -05:00
Severiano Jaramillo
ac7e729816 Enabled proguard to reduce APK size and added the pertinent proguard rules to avoid removing too much code. 2019-04-26 16:23:04 -05:00
Severiano Jaramillo
1eb9b64b45 Refactored TransactionsFragment, by moving all the transactions filtering logic to the corresponding ViewModel and taking advantage of Kotlin coroutines to excecute the filtering process in the background. 2019-04-26 16:05:58 -05:00
Severiano Jaramillo
0144938052 Simplified FilterOptionsDialog changing the way it is constructed and take advantage of Kotlin synthetic features to automatically obtain a reference to the views in the layout. 2019-04-26 15:32:51 -05:00
Severiano Jaramillo
484e4bde68 Improved FilterOptionsDialog by changing the way it communicates with the DatePickerFragment, using an interface instead of a Handler. 2019-04-26 15:16:12 -05:00
Severiano Jaramillo
d1bce06ec2 Created FilterOptions class to serve as an easy way to communicate filter options user preferences between the TransactionsFragment and the FilterOptionsDialog, and use it to filter the transactions list. 2019-04-26 14:41:34 -05:00
Severiano Jaramillo
4ed2eba66a Added the Kotlin coroutines library. 2019-04-26 12:23:26 -05:00
Severiano Jaramillo
aca43cfb9d Updated a couple of libraries. 2019-04-26 12:16:33 -05:00
Severiano Jaramillo
8eccf85277 Fixed deep link structure, to comply with PP BitShares invoices. 2019-04-26 12:02:50 -05:00
Severiano Jaramillo
dc3d04b934 Comment out citadel node, because it is not synced and is sending stale information. 2019-04-26 11:49:55 -05:00
Severiano Jaramillo
23d2cd6836 Created a different layout to show the map pin's markers for tellers and merchants. Added more fields to the tellers db table, to include the newly added in the V2 of the webservice: Keybase, Whatsapp, Viber and Email and created a db migration to reflect that. Added the code to show the teller's newly added fields to the pin's markers if such fields exist and hide that field otherwise. 2019-04-25 21:14:42 -05:00
Severiano Jaramillo
8af2042039 Verify that the node is synced before trying to broadcast a transaction in TransactionsActivity, to avoid users confusion. Ideally, the app should not be connected to an out of sync node, but this is in case that still happens. 2019-04-25 17:43:07 -05:00
Severiano Jaramillo
01a2bc1a53 Update Gradle version to 3.4 2019-04-25 17:38:15 -05:00
Severiano Jaramillo
00a8b0546f Make sure to ask for the Security Lock when the user tries to upgrade to LTM. 2019-04-25 14:53:02 -05:00
Severiano Jaramillo
40b7650353 Changed the structure of the deep link used to intercept palmpay bitshares invoices to 'go.payit.now/bitshares/{to}/{amount}/{asset}/{memo}'. This will intercept the links whether or not they explicitly state http:// or https:// at the beginning. 2019-04-12 15:23:23 -05:00
Severiano Jaramillo
e88ef6cb91 Added a Deep Link to the app so that it can tell the Android system that it can consume a link of the form 'www.bitshares.com/{to}/{amount}/{asset}/{memo}' so when a user clicks on a link like that the Android system lets the user choose Bitsy to manage it. This deep link takes to user directly to the SendTransactionFragment, fills all the required fields and validates the information so that if it is valid then the user all that needs to do is click the send button and authorize the operation. 2019-04-11 20:43:58 -05:00
Severiano Jaramillo
b5371954e0 Updated BiTSy to use v2 of the webservice to fetch merchants information. 2019-04-10 18:44:17 -05:00
Severiano Jaramillo
6f132c049f Fix and standardize the material cards all around the app. 2019-03-20 21:10:32 -06:00
Severiano Jaramillo
8e752087e6 Fixed the camera button's white border issue for Android Lollipop devices, also fixed the pie chart color for the same Android version and darkened the drop shadow of all three floating buttons in the Home Fragment. 2019-03-20 20:58:56 -06:00
Severiano Jaramillo
6eb3e8c220 Commented out 4 BitShares nodes that are offline as of the day of this commit. 2019-03-20 15:36:39 -06:00
Severiano Jaramillo
a95c103d51 Bumped versionName to 0.12.0-beta and versionCode to 6 2019-03-20 15:24:45 -06:00