Severiano Jaramillo
19c50a0b6e
Update Navigation and Crashlytics library versions.
2019-02-12 15:33:09 -06:00
Severiano Jaramillo
d249f165d9
Change equivalent value text to just value in eReceipts.
2019-02-12 09:34:15 -06:00
Severiano Jaramillo
26abfffb1d
Disable proguard's minify until it can be properly configured
2019-02-11 20:41:29 -06:00
Severiano Jaramillo
4ab5ecbe6e
Bumping version code to 4 and version name to 0.10.0-beta
2019-02-11 20:40:23 -06:00
Severiano Jaramillo
5d8dbd0664
Correctly handle the scenario when the user scans a QR that requests an asset that he does not own, when that happens just parse the To and Memo fields and show a snackbar with a proper message, do not fill the amount field.
2019-02-11 20:38:46 -06:00
Severiano Jaramillo
dd8a52451a
Make sure to use the asset precision to correctly format the asset amount when reading QRs in SendTransactionActivity.
2019-02-11 20:10:21 -06:00
Severiano Jaramillo
1e67fdf065
Improve the camera preview in SendTransactionFragment, so that both the preview and the scan zone are squared.
2019-02-11 18:53:18 -06:00
Severiano Jaramillo
653bdbec69
Fix a proguard rule and enable proguard on debug builds too.
2019-02-11 16:10:14 -06:00
Severiano Jaramillo
5465dcaa44
Enable proguard's minify and fix warnings to be able to create the apks.
2019-02-11 15:21:24 -06:00
Severiano Jaramillo
21c6b776af
Make use of Kotlin's null safe operations to avoid NullPointerException in various places in the app. Use of the ContextCompat and ConfigurationCompat classes in different screens to safely access app configuration and resources in a backwards compatible way.
2019-02-11 12:16:56 -06:00
Severiano Jaramillo
42e0fc74b0
Changed the comparator used to sort the transactions in TransactionsActivity to compare the Long representation of the transfer ID instead of the String representation.
...
Even though transfer IDs are incremental in the form 1.11.x where x is the number that increments for each transfer, the field is a string and that causes errors when doing the comparisons because the string 9 is 'greater' than 123456789 so instead of doing the string comparison we had to convert the ID to a long number and only then do the comparison to make sure the transactions are correctly ordered.
2019-02-07 16:42:57 -06:00
Severiano Jaramillo
e5677436b1
Add the equivalent value to both PDF and CSV export options.
2019-02-07 13:40:26 -06:00
Severiano Jaramillo
d68b34f973
Add the functionality in TransactionsFragment to filter transactions by Equivalent Value range, taking into account the currency precision.
2019-02-07 13:20:24 -06:00
Severiano Jaramillo
abfbed91f5
Extract string resources from FilterOptionsDialog and add their Spanish translation.
2019-02-07 13:07:04 -06:00
Severiano Jaramillo
76fea6cfc1
Added the filter by Equivalent Value range option to the TransactionsFragment' FilterOptioinsDialog, which communicates the user selection back and forth. Also, renamed all string instances of Fiat Equivalent to Equivalent Value in order to use the same convention in all the screens
2019-02-07 12:52:37 -06:00
Severiano Jaramillo
d36de0b30a
Fix db migration for the transfers table and for transfers of other asset than BTS, so that its propper bts_value can be fetched later.
2019-02-07 10:26:09 -06:00
Severiano Jaramillo
e4dce3cad4
Merge branch 'develop' of github.com:Agorise/bitsy-wallet into develop
2019-02-06 21:17:25 -06:00
Nelson R. Perez
94b5ae7780
- Commented some tests in the TransfersTests that no longer work due to changes in the API
2019-02-06 17:38:30 -05:00
Nelson R. Perez
cf8771ac5e
- Introduced a small modification to the db migration to version 3 that will take care of filling up the 'bts_value' of pre-existing entries in the 'transfer' table made with BTS
...
- Extended the unit test for the 2-to-3 database migration to take in consideration said change
2019-02-06 17:38:01 -05:00
Severiano Jaramillo
032cb63218
Make both Transaction items and eReceipts to show the currency code instead of the currency symbol with the equivalent value.
2019-02-06 14:22:50 -06:00
Severiano Jaramillo
0b287ca714
Add fiatAmount and fiatSymbol members to the TransferDetail object and modify the query to fetch TransferDetails from the database to obtain those two objects from the EquivalentValues table if they have been already obtained
2019-02-06 12:42:18 -06:00
Severiano Jaramillo
577e3ae01f
Merge branch 'feat_equiv_values' into develop
2019-02-05 21:12:03 -06:00
Severiano Jaramillo
94f4eaca0f
Add the share icon in the eReceipt toolbar, which when tapped creates a screenshot of the eReceipt and sends an intent to the system so it shows all the possible options for the user to share the image.
2019-02-05 20:40:29 -06:00
Severiano Jaramillo
259294b6e3
Fix eReceipt title color in dark mode.
2019-02-05 17:19:14 -06:00
Severiano Jaramillo
032c5bcb5f
Add functionality to eReceipts to fetch the Transaction information from the database and correctly format and display it on the screen.
2019-02-05 17:17:00 -06:00
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