Commit Graph

1598 Commits

Author SHA1 Message Date
Mateusz Markowicz 02b194ab9c Merge branch 'fix/switch-external-username' into 'master'
Switch between External and Username on choosing username screen

See merge request proton/mobile/android/proton-libs!467
2021-11-15 10:04:36 +00:00
Mateusz Markowicz 7bfa1ecb69 Switch between External and Username on choosing username screen
When required account type by the client is external - currently used
only for VPN - switch between External and Username instead of Internal.
For future we might want client to inject this preference.
2021-11-15 10:25:50 +01:00
cibot 52dd05db14 [release] User Settings Data 1.18.2
User Settings Domain 1.18.2
User Settings Presentation 1.18.2
User Settings 1.18.2
2021-11-12 15:03:27 +00:00
Dino Kadrikj cbabf09375 Merge branch 'chore/pass-management/mailbox-pass-showing-sync' into 'master'
Refactor password manager sync between showing the login and mailbox password forms.

See merge request proton/mobile/android/proton-libs!466
2021-11-12 13:59:16 +00:00
dkadrikj c4645ebe78 Update CHANGELOG.md 2021-11-12 14:03:34 +01:00
dkadrikj e202f227ed Refactor password manager sync between showing the login and mailbox password forms. 2021-11-12 14:03:04 +01:00
cibot 55f66a6779 [release] Auth Data 1.18.1
Auth 1.18.1
Auth Domain 1.18.1
Auth Presentation 1.18.1
2021-11-12 12:06:47 +00:00
Mateusz Armatys 67c21b68cf Merge branch 'feat/cp-2788-tests-with-logged-in-user' into 'master'
Refactor LoginViewModel

See merge request proton/mobile/android/proton-libs!453
2021-11-12 11:20:14 +00:00
Mateusz Armatys 46693485f0 Auth Version and Changelog 2021-11-12 11:44:26 +01:00
Mateusz Armatys f0a3528820 Simplify `LoginViewModelTest`:
Since parts of `LoginViewModel` have been extracted into separate use cases,
the tests can also be simplified to use mocks for `CreateLoginSession` and `PostLoginAccountSetup`.

Any removed tests are now unit-tested in `CreateLoginSessionTest` and `PostLoginAccountSetup`.

Running the new `LoginViewModelTest` results in the same code coverage for `LoginViewModel`.
2021-11-12 11:27:57 +01:00
Mateusz Armatys 070994e117 Tests for PostLoginAccountSetup 2021-11-12 11:27:57 +01:00
Mateusz Armatys 564221a777 Tests for CreateLoginSession 2021-11-12 11:27:57 +01:00
Mateusz Armatys b74dc50137 Move `performSubscribe` call from `LoginViewModel` into `PostLoginAccountSetup` 2021-11-12 11:27:57 +01:00
Mateusz Armatys 114571a164 Refactor LoginViewModel:
- extract login and local session creation into `CreateLoginSession` (`performLogin` and `handleSessionInfo`)
- extract post-login account check & setup into `PostLoginAccountSetup` (`setupAccountCheck` and the follow-up actions)
- modify `LoginViewodel.State` - most states is represented by `AccountSetupResult` which contains a detailed state
- update tests for `LoginViewModel`
2021-11-12 11:27:57 +01:00
cibot 64964c4955 [release] Mail Message Domain 1.15.1
Mail Message 1.15.1
Mail Message Data 1.15.1
2021-11-10 16:56:24 +00:00
Mateusz Armatys 532d992e36 Merge branch 'fix/bump-mail-message-module' into 'master'
Bump version for mail-message to fix a `NoSuchMethodError` crash

See merge request proton/mobile/android/proton-libs!465
2021-11-10 15:59:54 +00:00
Mateusz Armatys 1881d385ba Bump version for mail-message to fix a `NoSuchMethodError` crash
The class `GetRecipientPublicAddresses` (which is in mail-message module)
is calling `publicAddressKeyRepository.getPublicAddressOrNull`. At one point,
the third argument of this method was changed from boolean to Source,
so the method signature has changed.

`GetRecipientPublicAddresses` was calling this method only with
two arguments, and the third one was implicit (as it had a default value).

As a result, we didn't get any compilation errors, but the app would crash at runtime.
2021-11-10 11:42:50 +01:00
Jorge Martin fab03b10f9 Merge branch 'chore/cp-1077-get-code-coverage-working-for-mrs' into 'master'
Get code coverage reporting on MRs in GitLab for all Core projects

See merge request proton/mobile/android/proton-libs!444
2021-11-10 09:27:44 +00:00
Jorge Martín cdd985e83f Get code coverage reporting on MRs in GitLab for all Core projects 2021-11-10 09:43:45 +01:00
cibot 6645c5c90d [release] Test Android Instrumented 1.15.5 2021-11-09 17:32:12 +00:00
Mateusz Markowicz beb4ad56ce Merge branch 'fix/onview-not-exists' into 'master'
Fix OnView.checkDoesNotExist()

See merge request proton/mobile/android/proton-libs!464
2021-11-09 16:29:41 +00:00
Mateusz Markowicz a8c94f927e Add changelog for Test Android Instrumented 1.15.5 2021-11-09 16:24:03 +01:00
Mateusz Markowicz 05aea995e8 Fix OnView.checkDoesNotExist()
matches() shouldn't be used for not exist case as per documentation:
"asserts that a view exists in the view hierarchy and is matched by
the given view matcher."
2021-11-09 15:52:57 +01:00
cibot 233d304744 [release] Test Android Instrumented 1.15.4 2021-11-09 09:47:41 +00:00
Vincent Brison c67a88acd1 Merge branch 'fix/release_missing_test_artifact' into 'master'
Prepare release for Test Android Instrumented

See merge request proton/mobile/android/proton-libs!462
2021-11-09 08:46:33 +00:00
Vincent Brison dbf6e05e3b Prepare release for Test Android Instrumented 2021-11-08 17:43:32 +01:00
Vincent Brison 610a053017 Add missing API 2021-11-08 17:42:13 +01:00
cibot a5afb9427b [release] Key 1.16.1
Key Data 1.16.1
Key Domain 1.16.1
2021-11-08 14:46:26 +00:00
Marin Thiercelin 5e64463cd0 Merge branch 'fix/key/nullable-signed-key-list' into 'master'
Make SignedKeyList.data and signature nullable.

See merge request proton/mobile/android/proton-libs!461
2021-11-08 13:48:04 +00:00
marin thiercelin 17316b31b6
Make SignedKeyList.data and signature nullable.
There are some cases where the backend will return null strings
for SignedKeyList.signature, we adapt the model to be able to handle
these cases.
2021-11-08 12:44:52 +01:00
cibot d9e2002051 [release] Test Android Instrumented 1.15.3 2021-11-05 17:46:48 +00:00
Artiom Košelev 8cf60bcf53 Merge branch 'test/yearly-price-fix' into 'master'
Fixed two-year cycle yearly price.

See merge request proton/mobile/android/proton-libs!457
2021-11-05 16:51:26 +00:00
Vincent Brison 0e49a6267f Fix Danger conf
- Allow Danger to fail as it is still new to the build chain.
- Fix auto assign issue.
2021-11-05 15:11:42 +01:00
Artiom Košelev 642be62082 Fixed two-year cycle yearly price. 2021-11-05 13:34:29 +00:00
cibot 7116829c86 [release] Auth 1.18
Plan 1.18
Presentation 1.18.3
Auth Data 1.18
Auth Domain 1.18
Auth Presentation 1.18
Plan Data 1.18
Plan Domain 1.18
Plan Presentation 1.18
2021-11-05 13:25:14 +00:00
Artiom Košelev 25ae17b464 Merge branch 'feat/plans/v4.5_design' into 'master'
Plans V4 UI

See merge request proton/mobile/android/proton-libs!442
2021-11-05 12:11:33 +00:00
dkadrikj 49455ce3ab Bump auth and presentation modules version 2021-11-05 12:14:16 +01:00
dkadrikj 25a86693f1 Fix for incorrect annual price. 2021-11-05 12:10:17 +01:00
Artiom Košelev 5e739c94c8 Updated ui tests and robots 2021-11-05 12:10:17 +01:00
dkadrikj 995b785ca1 Fix wrong currency passed from plan selection into billing. 2021-11-05 12:10:17 +01:00
dkadrikj 3c454ac31e Update CHANGELOG.md 2021-11-05 12:10:17 +01:00
dkadrikj be83b7a118 Code readability improvements. 2021-11-05 12:09:09 +01:00
dkadrikj fc557ccba8 BilingCycle description text set 2 lines instead of 1. 2021-11-05 12:09:09 +01:00
dkadrikj 411fd64f67 Add recyclable to ProtonAdapter.kt 2021-11-05 12:09:09 +01:00
dkadrikj 7092de5249 Update current and signup plan viewmodels to support different layouts.
Fix bugs and other UI improvements.
2021-11-05 12:09:09 +01:00
dkadrikj 71b0991b24 Split plans into signup and upgrade components.
Handling of upgrade and current plan screen.
2021-11-05 12:09:09 +01:00
Artiom Košelev effcd89336 Updated SelectPlanRobot 2021-11-05 12:09:09 +01:00
dkadrikj 789fc484a5 Rename functions and properties to decrease ambiguity. 2021-11-05 12:09:09 +01:00
dkadrikj 16a498a5e1 Add separate unit tests for SignupPlansViewModelTest.kt and UpgradePlansViewModelTest.kt 2021-11-05 12:09:09 +01:00
dkadrikj ce6f2920d4 Fix test failure. 2021-11-05 12:09:09 +01:00