Commit graph

341 commits

Author SHA1 Message Date
Severiano Jaramillo
9e714d8f84 Wrap the contents of the CreateAccountFragment into a ScrollView, so that all its contents are available even for very small devices. 2019-02-20 14:10:51 -06:00
Severiano Jaramillo
5570229cef Created the methods to show the messages and errors in the correct format and color in the PatternSecurityLockDialog. 2019-02-20 12:06:19 -06:00
Severiano Jaramillo
19ede70c69 Added the option to lock the pattern security lock option when the user has entered it wrong too many times. Once the cooldown timer ends the pattern is re-enabled so the user can try again. 2019-02-20 11:32:15 -06:00
Severiano Jaramillo
2ea32af377 Created the methods required to block the security lock PIN option when the user has entered incorrectly the current PIN more times than the max allowed. When that happens the text field to type the PIN gets disabled and a propper message is shown, explaining the issue and also showing the time that needs to pass until he can try again. 2019-02-20 11:03:39 -06:00
Severiano Jaramillo
97d9e8bcfb Make sure to save the hash of the user selected PIN plus the salt used to generate it are both saved into the shared preferences, when creating or importing an account. 2019-02-18 14:13:02 -06:00
Severiano Jaramillo
fac7bb031e Changed the method used to store the user selected PIN/Pattern into the shared preferences, the app now uses a hashed version of the PIN/Pattern with added salt at the beginning instead of an encrypted one. The salt is being saved into the shared preferences so that we can confirm the current PIN/Pattern when the user requires to do so. 2019-02-18 14:06:48 -06:00
Severiano Jaramillo
b0811ab2c8 Added a step to first verify the user's Security Lock before trying to send a transaction in SendTransactionFragment. 2019-02-16 17:48:50 -06:00
Severiano Jaramillo
a10a8cd836 Added the verification of the Pattern security lock option, before changing the current Security Lock or viewing the BrainKey in the Settings, when Pattern is the current security lock. 2019-02-16 16:58:36 -06:00
Severiano Jaramillo
fb329658eb Added the logic to create a new Security Lock pattern and save it encrypted in the preferences, with all used strings translated to Spanish. 2019-02-16 16:41:02 -06:00
Severiano Jaramillo
e44f4ea6e2 Created PatternSecurityLockDialog, which will be in charge of creating and confirming a new Pattern of validating the existing one, with a logic similar to PINSecurityLockDialog's. Created basic PatternSecurityLockDialog with a UI that resembles Android's. 2019-02-14 19:57:42 -06:00
Severiano Jaramillo
e8e1259314 Added the options to change the Security Lock option between PIN and None, and force the UI to show the correct one when it is changed. 2019-02-14 15:17:29 -06:00
Severiano Jaramillo
b4965d8a01 Create the methods to ask for the current Security Lock before showing the BrainKey. 2019-02-14 13:41:27 -06:00
Severiano Jaramillo
f3c85e8875 Added the functionality to PINSecurityLockDialog to check if the entered PIN corresponds with the current PIN and if that is the case let the calling fragmet about it, so that the fragment can respond accordingly 2019-02-14 12:53:35 -06:00
Severiano Jaramillo
123482e996 Added the PatternLockView library to the project, which will let us add the pattern security option. Modified the Settings screen so that when the user tries to change its Security Lock option and the current one is PIN, show the PIN dialog first. Created the PINSecurityLockDialog which will host the logic of creating and confirming the new PIN, and verifying the current one. Finally, created BaseSecurityLockDialog which will host the shared logic between the PIN and Pattern Security Lock dialogs. 2019-02-14 09:06:22 -06:00
Severiano Jaramillo
084a90d515 Add a Security section to the Settings screen, with a Security Lock option where the user can see the currently selected Security Lock option. When it is tapped a dialog appears where the user can select his desired Security Lock (PIN/Pattern/None). 2019-02-13 13:37:15 -06:00
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