Commit Graph

119 Commits

Author SHA1 Message Date
Mateusz Armatys 4d14921849 Bump versions for libraries that use `presentation` module 2021-11-16 16:10:58 +01:00
Mateusz Armatys c57ef43999 Changelog and versions (country, human-verification) 2021-10-29 15:25:04 +02:00
Mateusz Armatys 586cbf6c9f HumanVerificationDialogFragment: add window animation style 2021-10-29 15:19:46 +02:00
Mateusz Armatys 4b48457344 HV Email and SMS screens don't need a background;
They are displayed as a part of dialog_human_verification_main.xml which has its own background
2021-10-29 15:19:46 +02:00
Mateusz Armatys 4ddb159f80 [detekt] HumanVerificationCaptchaFragment: typed getter for fragment argument 2021-10-29 15:19:46 +02:00
Mateusz Armatys 1d9785cfcb Human Verification Captcha: set transparent background color for the web view;
Setting it in layout XML has no desired effect.
2021-10-29 15:19:46 +02:00
Mateusz Armatys 55409d26cf Change background for Human Verification screens:
Use `proton_background_norm` instead of `windowBackground`.
2021-10-29 15:19:46 +02:00
Mateusz Armatys 9b1d7eaa9d [detekt] HumanVerificationDialogFragment:
- move companion object to bottom
- use typed getter (getString) for Fragment's arguments
- replace `when` with `if`
2021-10-29 15:19:46 +02:00
Jorge Martín 7a2e954440 Added ScreenContentProtector, ProtonSecureActivity/Fragment classes and protectScreen delegate. 2021-10-22 08:30:17 +02:00
Vincent Brison 43e96bd93b Add missing bump from viewbinding update 2021-10-20 16:11:15 +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 277f4e199f Migrate fragments to viewbinding 2021-10-19 11:12:35 +02:00
Vincent Brison 07c6a0ad99 Migrate dialog 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 a460ccecdf Expose `HumanVerificationOrchestrator.startHumanVerificationWorkflow(HumanVerificationInput)` method 2021-10-06 14:47:43 +02:00
Mateusz Armatys a820b6959e Remove deprecated HumanVerificationActivity and related things 2021-10-06 14:47:43 +02:00
Mateusz Armatys 8314de6058 Do not show HumanVerificationDialogFragment if it's already added. 2021-10-06 14:47:43 +02:00
Mateusz Armatys 03db05b867 Refactor: Update nullability in HumanVerificationOrchestrator.setOnHumanVerificationResult:
The HumanVerificationResult is never null; if human verification was cancelled, then the HumanVerificationResult.token will be null

In HumanVerificationDialogFragment, there is now a single exit path (setResultAndDismiss)
2021-10-06 14:47:42 +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
Mateusz Armatys 79dc1ffadb Deprecate HumanVerificationActivity in favor of HumanVerificationOrchestrator
For some edge cases (e.g. when "Don't keep activities" is enabled), using a `HumanVerificationActivity` may lead to unpredictable behavior.

CP-2505
2021-10-06 14:47:42 +02:00
Jorge Martín 102f40d3d6 Add Atlas Proxy for testing, ExtraHeaderProvider to add arbitrary headers to all requests 2021-10-06 09:31:42 +02:00
Neil Marietta ae9280d50b KeyStoreCrypto fallback if Android KeyStore is not properly working. 2021-09-21 16:25:03 +02:00
proton-ci a615505f00 [i18n@16fd1eaf] ~ Upgrade translations from crowdin 2021-09-20 07:04:06 +00: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
proton-ci b260608b34 [i18n@fc1b38b8] ~ Upgrade translations from crowdin 2021-09-07 14:13:23 +00: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 b2f79426cc Improve fragment result listener. 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
Neil Marietta 664bcd6dbe Updated CHANGELOG.md and Modules version. 2021-08-13 15:38:08 +02:00
Neil Marietta 7e5d93881c HumanVerification: Added SMS/Email Token code validation. 2021-08-13 15:19:12 +02:00
Neil Marietta 95ee3cf404 HumanVerification: Fixed concurrency issue while updating state/token. 2021-08-13 15:19:12 +02:00
Neil Marietta c21120debc Auth: Fixed wrong initial Fragment shown if available HV methods equal ("sms", "email"). 2021-08-13 15:19:12 +02: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 68497f4e57 Fix captcha webview for human verification not shown properly on small devices. 2021-07-26 09:56:59 +00:00
dkadrikj 3506827a9b Improve Human Verification help UI.
Bump affected module versions.
2021-07-22 15:20:46 +00:00
dkadrikj 384d8af85e Fix and improve currency number format, add dialog to the resent code human verification and other plan and payment UI and string polishing. 2021-07-22 15:20:46 +00:00
dkadrikj 636843e6f7 Signup recovery screen tidy up. 2021-07-22 15:20:46 +00:00
dkadrikj c8a88664f9 Tidy up human verification screens. 2021-07-22 15:20:46 +00: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
dkadrikj 2fac13fda6 Replace ComponentActivity and Fragment with ActivityResultCaller.
Add Human Ver Details Payment ext method.
2021-07-12 17:26:01 +02:00
Neil Marietta 455c1575d5 Renamed CaptchaHost annotation to CaptchaApiHost (to make it clearer). 2021-07-07 07:36:45 +00:00
Neil Marietta 24edbeb298 Renamed Annotation CaptchaBaseUrl to CaptchaHost and some captchaBaseUrl to captchaUrl. 2021-07-01 17:44:08 +02:00
dkadrikj 839c630278 Bump human verification module version. 2021-06-23 11:25:21 +02:00
dkadrikj aff32aa851 Code improvement, bug fixes and bump versions. 2021-06-21 11:04:13 +02:00
dkadrikj a92ba95232 HV support for plans module. 2021-06-21 10:33:09 +02:00