Commit Graph

88 Commits

Author SHA1 Message Date
Mateusz Armatys 4d14921849 Bump versions for libraries that use `presentation` module 2021-11-16 16:10:58 +01:00
Neil Marietta 8f7c4f2c4a Fixed missing Account Manager DB json schema 11 file. 2021-10-29 15:14:22 +00:00
Neil Marietta 04e2af7fae Added EventMetadataDatabase MIGRATION_0 to AccountManagerDatabase. 2021-10-25 12:47:04 +02:00
Vincent Brison b2a380f78d Bump versions 2021-10-19 11:39:45 +02:00
Vincent Brison f3fb0d8a66 Remove databinding
Disable databinding on account-manager module
Disable databinding on auth module
Disable databinding on coreexample module
Disable databinding on country module
Disable databinding on human-verification module
Disable databinding on payment module
Disable databinding on plan module
Disable databinding on presentation module
Disable databinding on user-settings module
2021-10-19 11:34:00 +02:00
marin thiercelin 5c1e83f0dd
Key/User : fix handling of signed key lists
Signed key lists are used by the backend to enable key transparency of address keys.
This commits moves the logic of generating SKLs to the user address level.
It fixes the handling of flags and primariness of keys in SKLs.
We update the model of address and public address entities to store the SKL associated.
We migrate databases to be able to store those SKLs.
2021-10-15 14:57:03 +02:00
Neil Marietta 79f17c33dc Added ContactDatabase MIGRATION_0 to AccountManagerDatabase. 2021-10-14 12:01:35 +02:00
Vincent Brison eae528716f Bump all libraries version to 1.15.0 2021-09-10 17:44:59 +02:00
Benjamin Monjoie befca10552 Fix UI tests are not passing anymore
Due to a breaking change in the experimental Duration API in Kotlin
1.5 and a conflict with inline classes and coroutine in the IR
compiler. I had to update several dependencies.

 * Fix tests won't run anymore by updating Kotlin (and dependencies)
    + turbine
 * Update Store4 since there was a breaking change in Kotlin 1.5's
   experimental Duration API on which Store4 relied
 * Fix some deprecated calls (toUppercase/toLowercase, capitalize,
   expectItem, ...)
2021-09-10 15:06:13 +02:00
dkadrikj 67ccc4b7cd Bump dependencies version to 1.6. 2021-08-21 00:44:49 +02:00
dkadrikj 2d7ab4fa4e Cleanup and organize code.
Set organization name not null.
Update CHANGELOG.md.
2021-08-20 17:12:25 +00:00
dkadrikj 8e24a352dd Reorganize, move change user pass and mailbox pass for 2 pass accounts into UserManager.
Update Org and OrgKeys into a single DB.
2021-08-20 17:12:25 +00:00
dkadrikj afd4b8591b Rebase. 2021-08-20 17:12:25 +00:00
dkadrikj 7c6fbda668 Add OrganizationKeys entity and database. 2021-08-20 17:12:25 +00:00
dkadrikj 429f4ff338 Add support for two pass mode users login password change (data, domain and view model updates). 2021-08-20 17:12:25 +00:00
dkadrikj 4094dbbda7 Updated CHANGELOG & modules version. 2021-08-05 11:35:09 +02:00
proton-ci 0cd2d60e3f [i18n@eeb80941] ~ Upgrade translations from crowdin 2021-08-05 11:33:37 +02:00
dkadrikj 3989f69cb2 Clean up code, improve and fix bugs and unit tests.
Update CHANGELOG.md
2021-07-30 14:24:12 +00:00
dkadrikj 1d365bcf56 Add storing option to user settings module. 2021-07-30 14:24:12 +00:00
Neil Marietta a0aa73cf82 Changed Account Initials Count to 1. 2021-07-27 12:10:04 +02:00
Neil Marietta d4820e07f9 Added AccountManager Data Db module (backward compatibility). 2021-07-21 16:24:02 +02:00
Neil Marietta 510e1be80f Removed Dagger Provides AccountManagerDatabase from AccountManager Dagger module. 2021-07-21 16:24:02 +02:00
Neil Marietta ff22efde46 Added Data Room module. 2021-07-21 16:24:02 +02:00
Neil Marietta 63cb162e19 Refactored Core Database. 2021-07-21 16:24:02 +02:00
Neil Marietta 556a8d3983 Added Mail-Settings modules. 2021-07-07 14:22:16 +02:00
Neil Marietta eec8b332d3 Added Removed Account in disableInitialNotReadyAccounts. 2021-06-16 12:10:15 +02:00
Neil Marietta d38c8739a3 Added AccountSwitcher Menu icons. 2021-06-09 15:55:45 +02:00
Neil Marietta efb32cc38c Fixed AccountSwitcherViewModel (primaryAccount & accounts) to observe User Flow. 2021-06-09 15:55:45 +02:00
Neil Marietta 646183da63 Refactored HumanVerification.
Never delete HumanVerification tokens except on Invalid Verification Code (error 12087).

HumanVerification Network Handlers:
- HumanVerificationNeededHandler: call onHumanVerificationNeeded on error 9001 (last of error handler list).
- HumanVerificationInvalidHandler: call onHumanVerificationInvalid (which delete token) on error 12087.
2021-06-03 17:18:11 +02:00
Neil Marietta 85c8ab96e3 Improved AccountSwitcherViewModel (more flexible). 2021-05-21 18:19:57 +02:00
Neil Marietta ea186f6c6e Added Account Switcher onActionPerformed/showDialog/dismissDialog.
AccountSwitcherViewModel is injected via @HiltViewModel and could be set for AccountPrimaryView/AccountListView.
2021-05-14 18:49:01 +02:00
Neil Marietta 1b1f9e3c88 Merged UserManager lock directly into AccountManager. 2021-05-14 18:48:59 +02:00
Neil Marietta e3930f3715 Improved Account Switcher UI. 2021-05-14 18:12:27 +02:00
Neil Marietta d04c56399f Added Account Switcher (AccountPrimaryView, AccountListView). 2021-05-12 23:33:42 +02:00
Neil Marietta 58110656a9 Upgraded Hilt to 2.35.1. 2021-05-12 23:33:42 +02:00
dkadrikj 98ca99f9a6 Various improvements for Signup and Presentation.
Various improvements for User, Human Verification and Presentation modules.
Various improvements for User, Human Verification and Presentation modules.
Remove PayloadRequest.kt.
Update tests suite.
Remove not used files NewUser.kt and NewExternalEmailUser.kt
Take out create address from UserManager.kt
User emailSplit extension instead.
Introduce CreateUserType.kt
Move HumanVerificationResult handler into the ViewModel.
Fix wait to DB write HV ViewModel.
Improve SetupPrimaryKeys.kt.
Fix HV tests.
2021-05-12 21:07:28 +02:00
dkadrikj 6876980bbc Refactor human verification module.
Remove human verification dependency in account manager and make it independent.
2021-05-12 17:57:14 +00:00
Neil Marietta 84184cca2d Added Login Default User Checks (non-delinquent, only 1 free allowed). 2021-05-03 16:34:32 +02:00
Davide Farella f6b8069eb2 Increase global minSdk [21] -> [23] 2021-05-03 07:25:42 +00:00
Neil Marietta 6872647569 Upgraded Account Manager modules version. 2021-04-19 22:56:04 +02:00
Neil Marietta d28ac28525 Added Lifecycle minActiveState in AccountManagerObserver. 2021-04-19 22:56:01 +02:00
Neil Marietta a79f72c6ad Fixed wrong sequence when disabling/removing an Account. 2021-04-19 22:53:29 +02:00
Neil Marietta 6835a35574 Added Update Address DisplayName, Signature and Order. 2021-04-15 18:22:34 +02:00
Neil Marietta d9aa02c87f Added Get Previous Primary UserId. 2021-04-12 13:38:29 +02:00
Neil Marietta 025b9d243e Added disable initial NotReady accounts. 2021-04-08 15:06:02 +02:00
Neil Marietta 4ac8144f08 Added Refresh Session Scopes. 2021-04-07 11:35:06 +02:00
Damir Mihaljinec da31065676 Added room database type converters for UserId 2021-03-22 14:05:23 +00:00
Neil Marietta 0a1d829b12 Bump modules version to 1.0.2 (fix rename "simple" to "keystore"). 2021-03-05 11:28:41 +01:00
Neil Marietta ce874fa203 Renamed Crypto Android "simple" folder to "keystore". 2021-02-23 10:42:01 +01:00
Neil Marietta c4ddbc3777 Fixed AccountManager DB Migration 2 to 3 (missing index).
Upgraded AccountManager modules version to 1.0.1.
2021-02-17 10:11:44 +01:00