Commit Graph

51 Commits

Author SHA1 Message Date
Neil Marietta 9cf66be008 Added EventManagerConfig parameter to all EventListener functions. 2021-11-18 13:35:50 +01:00
dkadrikj e202f227ed Refactor password manager sync between showing the login and mailbox password forms. 2021-11-12 14:03:04 +01:00
dkadrikj edbd084fc9 Bump user settings version. 2021-10-28 11:29:49 +02:00
dkadrikj 200464e5b4 Remove duplicate childFragmentManager inside apply block. 2021-10-28 11:18:48 +02:00
dkadrikj 0959e7189f Fix CP-2803 for unable to change login pass for accounts with 2FA enabled. 2021-10-28 11:18:48 +02:00
Neil Marietta 351fa5eb7b Added EventManager Domain/Data and Event Listeners.
Added EventManager LogTags.
Added EventManagerConfig and EventManagerConfigProvider.
Added EventWorkManager and EventManagerWorker.

Added UserEventListener.
Added UserAddressEventListener.
Added MailSettingsEventListener.
Added UserSettingsEventListener.
Added ContactEventListener.
Added ContactEmailsEventListener.

Added AppLifecycleObserver and AppLifecycleProvider.
2021-10-25 12:47:04 +02:00
Jorge Martín 7a2e954440 Added ScreenContentProtector, ProtonSecureActivity/Fragment classes and protectScreen delegate. 2021-10-22 08:30:17 +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
Vincent Brison 2a70a78417 Migrate activities to viewbinding 2021-10-19 11:24:52 +02:00
Vincent Brison 277f4e199f Migrate fragments to viewbinding 2021-10-19 11:12:35 +02:00
Jorge Martín c70ff4e971 Protect screens with visible password fields using WindowManager's FLAG_SECURE
Add ProtonSecureActivity
2021-10-13 10:08:41 +00:00
Mateusz Armatys 00063e89a6 Update changelog and version numbers 2021-10-06 14:59:32 +02:00
Mateusz Armatys b0e63a845c FragmentDialogResultLauncher: update nullability of Input parameter
The Input can still be specified as nullable if needed.
2021-10-06 14:47:42 +02:00
Neil Marietta ae9280d50b KeyStoreCrypto fallback if Android KeyStore is not properly working. 2021-09-21 16:25:03 +02:00
Jorge Martín 5fc2de6837 Added IntEnum support for UserSettings 2021-09-20 17:12:30 +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 8f33a5085d Add better result callback for password management and recovery email change features.
Password management and recovery email change screens now auto-close themselves on success.
2021-09-10 11:41:31 +02:00
proton-ci b260608b34 [i18n@fc1b38b8] ~ Upgrade translations from crowdin 2021-09-07 14:13:23 +00:00
dkadrikj e3349d3036 Remove not needed PasswordType. Update CHANGELOG.md 2021-09-06 11:23:03 +02:00
dkadrikj e16b78fb6f Join all fragment result listeners. 2021-09-03 16:10:37 +02:00
dkadrikj 89e2b934dd Add fragment result pattern to password and recovery email fragments. 2021-09-02 17:05:40 +02:00
dkadrikj 7c07ba1f15 Fix password validation and soft keyboard input mode for user settings screens. 2021-09-01 12:30:09 +00:00
dkadrikj 30f35e5eee Fix dialog fragments crash on rotation change because of missing default constructor. 2021-09-01 12:30:09 +00:00
dkadrikj 67ccc4b7cd Bump dependencies version to 1.6. 2021-08-21 00:44:49 +02:00
Neil Marietta 6a56670f70 Refactored Crypto related to change password. 2021-08-20 17:12:25 +00: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 5cea083ef3 Fix PasswordManagementViewModelTest.kt tests. 2021-08-20 17:12:25 +00:00
dkadrikj f3f651d5cc Add success message to both recovery email and password change. 2021-08-20 17:12:25 +00:00
dkadrikj 0ec83b871f Fix UI bug for single pass accounts. 2021-08-20 17:12:25 +00:00
dkadrikj edbe4b9d8d Move update key from user settings under keys module. 2021-08-20 17:12:25 +00:00
dkadrikj afd4b8591b Rebase. 2021-08-20 17:12:25 +00:00
dkadrikj 3183607b6d Rename private key api and repository functions. 2021-08-20 17:12:25 +00:00
dkadrikj 74c2d99dbf Add change pass use cases unit tests.
Add change pass data unit tests.

Add change pass view model unit tests.
2021-08-20 17:12:25 +00:00
dkadrikj 7e408f8070 Add keys refresh after success password change. 2021-08-20 17:12:25 +00:00
dkadrikj 7c6fbda668 Add OrganizationKeys entity and database. 2021-08-20 17:12:25 +00:00
dkadrikj 39d524f959 Add 2FA dialog for accounts that have enabled it during password change. 2021-08-20 17:12:25 +00:00
dkadrikj 4cfdfb1eb4 Add mailbox password change.
Move private key routes under key modules.

Fix pass validation bug and org private key encryption bug.
2021-08-20 17:12:25 +00:00
dkadrikj fdf75e1974 Add UI support for single and two password modes. 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 b9f2b342bd Add password management UI. 2021-08-20 17:12:25 +00:00
Neil Marietta 54350f3033 Presentation: Fixed OnBackPressedCallback & and Fragments backstack flow. 2021-08-13 11:20:41 +02:00
Neil Marietta 518e99e2b3 Fixed UserSettingsDatabase MIGRATION_0. 2021-07-30 19:14:32 +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
dkadrikj 19a30d0269 Fix affected modules unit tests. 2021-07-30 14:24:12 +00:00
dkadrikj ec27a481a9 Reorganise and Move settings related parts under new user settings module. 2021-07-30 14:24:12 +00:00
dkadrikj 38eebce39c Add user settings recovery email view model test. 2021-07-30 14:24:12 +00:00