Commit graph

520 commits

Author SHA1 Message Date
Severiano Jaramillo
49b8ce1cb5 Create eReceipts dynamic layout. 2019-02-05 16:36:55 -06:00
Severiano Jaramillo
78dea00ee6 Update Navigation AAC Safe Args library version. Make use of the new Safe Args to pass the Transaction ID fromm the TransactionsActivity to the eReceipt. Update the use of Safe Args to the new way of passing data between HomeFragment and SendTransactionFragment, to decide whether or not to activate the Camera. 2019-02-05 15:14:10 -06:00
Severiano Jaramillo
d8f1ad7216 Create basic eReceipt screen, which is opened when a transaction is touched in the TransactionsFragment using the Navigation component. 2019-02-05 14:18:10 -06:00
Severiano Jaramillo
d4a8da0730 Update navigation, crashlytics and google maps libraries. 2019-02-05 12:36:04 -06:00
Severiano Jaramillo
caf909e453 Added a task to generate in the background the CSV representation of the filtered transactions with the same columns as the PDF export option. 2019-02-05 11:46:27 -06:00
Severiano Jaramillo
9a38b938a6 Extracted transactions PDF table header names as string resources and provided the Spanish translation. 2019-02-05 11:01:24 -06:00
Severiano Jaramillo
d7c728db2f Added the libraries to create PDF and CSV files directly from the app. Verify that the BiTSy folder exists in the external storage and if it doesn't then it creates it. Generate the filtered transactions' PDF with 7 columns: From, To, Memo, Date, Time, Asset Amount, and Fiat Equivalent. 2019-02-05 10:50:40 -06:00
Nelson R. Perez
c285bf6da7 Completed the comments to the onCleared function 2019-02-04 21:02:41 -05:00
Nelson R. Perez
35561059ce This commit finishes with the second part of the equivalent values calculation. In this part of the procedure a query is performed
looking for entries in the 'transactions' table that are missing a corresponding entry in the 'equivalent_values' table.

Whenere a transaction is detected to not have an equivalent value for a given fiat, a network request is made to the Coingecko's API in order
to obtain the BTS market value at the day of that transaction. An equivalent value is thus calculated using the 'bts_value' of the transaction.
2019-02-04 21:00:57 -05:00
Nelson R. Perez
262a0d58ad - Automatically setting the bts_value column for BTS transfers. 2019-02-03 18:13:00 -05:00
Nelson R. Perez
85846b6c75 - A LiveData wrapped query looking for entries of the 'transfer' table that lack a BTS value now automatically trigger a GetMarketHistory network call
- The network response is parsed and a BTS equivalent value is stored in the database
2019-02-03 15:08:32 -05:00
Severiano Jaramillo
b0e909072f Add a check to verify that the storage permission is already granted and if not then ask for it, before showing the export options dialog in the TransactionsFragment. 2019-02-01 16:29:21 -06:00
Severiano Jaramillo
df5f8c46f7 Create Export filtered transactions dialog in TransactionsFragment, which opens when the user clicks on the Toolbar's export button, with the corresponding Spanish translation of the new strings. 2019-02-01 15:57:56 -06:00
Nelson R. Perez
771aed9429 Linking the getTransfersWithMissingValueIn method to the repository, viewmodel and activity 2019-01-31 22:26:41 -05:00
Nelson R. Perez
f197e44262 Introducing the TransfersDao#getTransfersWithMissingValueIn(symbol: String) method, used to obtain only the transfers that lack a specific equivalent value entry, and related tests 2019-01-31 22:26:41 -05:00
Nelson R. Perez
a10c527956 Introducing an optional field called bts_value in the Transfer entity 2019-01-31 22:24:21 -05:00
Severiano Jaramillo
032c627725 Order assets alphabetically on Spinners in ReceiveTransactionFragment, SendTransactionFragment and TransactionsFragment's FilterOptionsDialog, always trying to select BTS by default. 2019-01-31 19:37:05 -06:00
Severiano Jaramillo
a8fe1ed2c5 Make the list of assets in the Balances section to be ordered by asset symbol ignoring the letters case. Show the bit prefix for smartcoins in the Transactions list. 2019-01-31 19:16:00 -06:00
Severiano Jaramillo
b628260d77 Make all smartcoins to show the 'bit' prefix in all the screens that show them, but keeping the original asset symbol unmodified to be used in the places where the symbol is required. 2019-01-31 18:52:41 -06:00
Severiano Jaramillo
535796b0be Change the db assets table to include the issuer column, and provide the db migration. 2019-01-31 17:59:14 -06:00
Severiano Jaramillo
5739922bce Merge branch 'develop' of github.com:Agorise/bitsy-wallet into develop 2019-01-31 17:01:18 -06:00
Severiano Jaramillo
785b555baf Completely kill the app after three minutes of innactivity. 2019-01-31 17:01:09 -06:00
Nelson R. Perez
deb8cf4401 Merge branch 'feat_equiv_values' into develop 2019-01-31 17:14:28 -05:00
Severiano Jaramillo
1a064c0a5e Avoid disabling the memo field in SendTransactionActivity if the QR code read's memo does not start with PP. 2019-01-31 16:12:26 -06:00
Severiano Jaramillo
981a14723e In the MerchantsFragment's Map InfoWindows allow line wraps for both name and address and if a section has no data do not show a blank line but just hide it. 2019-01-31 15:42:36 -06:00
Severiano Jaramillo
fbb66864e5 Change the method to zoom the map camera when a suggestion is selected from the Toolbar's SearchView in MerchantsFragment, it now shows a much bigger area. 2019-01-31 15:22:40 -06:00
Severiano Jaramillo
980517c168 Merge branch 'develop' of github.com:Agorise/bitsy-wallet into develop 2019-01-31 15:00:46 -06:00
Severiano Jaramillo
eaa661ba5d Fix crash in TransfersLoader when changing between night and day mode. 2019-01-31 14:59:40 -06:00
Nelson R. Perez
65250c57f5 Added an error handler to the RxBus instance subscription call 2019-01-31 15:27:00 -05:00
Nelson R. Perez
622205069d - Modified equivalent_values table in order to work directly with fiat values
- Introduced version 3 of the database with said modifications
- Introduced basic db migration
2019-01-31 15:12:14 -05:00
Severiano Jaramillo
c7138c5e22 Dynamically obtain the status bar and navigation bar height, to automatically and correctly place the Toolbar and Map UI Controllers in MerchantsFragment. 2019-01-31 13:36:38 -06:00
Severiano Jaramillo
6e5c6b50b8 Enable crashlytics reports on release builds only, avoiding crashes in the debug version when trying to initialize crashlytics. 2019-01-31 12:18:21 -06:00
Nelson R. Perez
d0218727e9 Enabling crashlytics reports on release builds only 2019-01-30 22:38:01 -05:00
Severiano Jaramillo
9594726052 Bumping version code to 3 and version name to 0.9.1-beta 2019-01-30 12:19:39 -06:00
Severiano Jaramillo
e328eb149b Make sure the popup menu is dismissed when the toolbar or the search icon are clicked in the MerchantsFragment. 2019-01-30 12:11:57 -06:00
Severiano Jaramillo
1505a5642c In MerchantsFragment, change the popup window background to transparent to match the maps theme. Hide the MyLocation button while the popup is open to avoid it making it hard to see the switches in the popup menu. Color the popup menu's switches to use the same green and yellow color as their corresponding pon markers. Move the popup window down to remove the overlapping with the Toolbar. 2019-01-30 11:15:07 -06:00
Severiano Jaramillo
4a47b5b637 Created AutoScrollingTextView which automatically scrolls its contents horizontally in case the contents do not fit the available width and used it in the Map suggestions' address to display the complete address. Also, improved the Map Toolbar color. 2019-01-30 09:35:06 -06:00
Severiano Jaramillo
28e0e9df52 Make the MerchantsFragment's custom translucent Toolbar works with the up button, and menu items, looks good in day and night modes and make sure everything goes back to normal when returning to the HomeFragment. 2019-01-29 23:46:04 -06:00
Severiano Jaramillo
4d8ed68912 Add translucent navigation and status bar to the MerchantsFragment and adjust the content size so that the map grows below them. 2019-01-29 22:33:32 -06:00
Severiano Jaramillo
ba82d50cc6 Change google map's night mode style. 2019-01-29 16:31:15 -06:00
Severiano Jaramillo
def6fd4ec5 Disable the memo field in SendTransactionFragment when reading a QR code that contains a memo, to avoid problems in case the receipient is expecting that exact memo. 2019-01-29 15:57:07 -06:00
Severiano Jaramillo
3a0527a5bf Delay camera activation in SendTransactionFragment after the transition from the homescreen, to avoid flicker during the transition. 2019-01-29 15:00:30 -06:00
Severiano Jaramillo
fb7c91d6bb Updated Navigation Architecture Component library version and tested it worked fine. Setted a maximum width to the MerchantsFragment's SearchView so that it does not move other items out of the screen. Added the auto hide keyboard feature to ReceiveTransactionFragment's AutoCompleteTextView when it loses focus. 2019-01-29 11:08:32 -06:00
Severiano Jaramillo
5fc5db88c2 Show merchants and tellers suggestions in MerchantsFragment's SearchView if they are enabled in the popup window. 2019-01-29 10:44:08 -06:00
Severiano Jaramillo
732d48796b Update google maps 2019-01-29 10:36:09 -06:00
Severiano Jaramillo
e02ff42a85 Remove google_maps_api from version control. 2019-01-29 10:25:21 -06:00
Severiano Jaramillo
6bc3b77b79 Bumping version code to 2 and version name to 0.9.0-beta 2019-01-28 21:53:18 -06:00
Severiano Jaramillo
c65cf1b69e When a suggestion is selected in the MerchantsFragment's SerachView, zoom and move the map camera to center the corresponding marker. 2019-01-28 21:50:32 -06:00
Severiano Jaramillo
978e8d6ee2 Improve responsivenes of suggestions in MerchantsFragment's SearchView by reducing the debounce effect and clearing the query results if the query is shorter than 2 chars. 2019-01-28 19:48:11 -06:00
Severiano Jaramillo
9ecac53f62 Create a new model MapObject to combine the returned list of Merchants and Tellers into the suggestions to appear under the MerchantsFragment's SearchView. 2019-01-28 19:21:19 -06:00