Commit Graph

1567 Commits

Author SHA1 Message Date
Jorge Martin 9582624601 event-manager: Add onSuccess and onFailure callbacks to EventListener 2021-11-22 09:10:19 +00:00
Jorge Martin 2e5a7179c0 Merge branch 'chore/cp-2790-add-danger-cobertura' into 'master'
chore(CP-2790): Add Danger-cobertura plugin

See merge request proton/mobile/android/proton-libs!455
2021-11-19 09:41:48 +00:00
Jorge Martín 3c5e08bced Add Danger-Cobertura 2021-11-19 10:03:57 +01:00
cibot 2a2ce224b8 [release] Contact 1.19.1
Mail Settings 1.19.1
User 1.19.1
Event Manager 1.19.1
User Settings 1.19.1
Contact Data 1.19.1
Contact Domain 1.19.1
Contact Hilt 1.19.1
Event Manager Domain 1.19.1
Mail Settings Data 1.19.1
Mail Settings Domain 1.19.1
Event Manager Data 1.19.1
User Data 1.19.1
User Domain 1.19.1
User Settings Data 1.19.1
User Settings Domain 1.19.1
User Settings Presentation 1.19.1
2021-11-18 14:02:05 +00:00
Neil Marietta 9b0c7a616c Merge branch 'feat/eventmanager_added_config_parameter' into 'master'
Added EventManagerConfig parameter to all EventListener functions.

See merge request proton/mobile/android/proton-libs!477
2021-11-18 13:06:10 +00:00
Neil Marietta 9cf66be008 Added EventManagerConfig parameter to all EventListener functions. 2021-11-18 13:35:50 +01:00
cibot 52ff3a3e33 [release] Plan Data 1.18.2
Plan 1.18.2
Plan Domain 1.18.2
Plan Presentation 1.18.2
2021-11-17 10:28:35 +00:00
Jorge Martin 53638e9d64 Merge branch 'fix/fix-broken-plan-translations' into 'master'
Fix broken plan translations

See merge request proton/mobile/android/proton-libs!471
2021-11-17 09:33:06 +00:00
Jorge Martín b7563c0426 Fix broken plan translations 2021-11-17 09:49:18 +01:00
cibot bcb7cdc1f0 [release] Country 1.16.2
Account Manager 1.16.2
Event Manager 1.18.1
Human Verification 1.16.3
Payment 1.17.3
Plan 1.18.1
Account Manager Dagger 1.16.2
Account Manager Data 1.16.2
Account Manager Data Db 1.16.2
Account Manager Domain 1.16.2
Account Manager Presentation 1.16.2
Country Data 1.16.2
Country Domain 1.16.2
Country Presentation 1.16.2
Event Manager Data 1.18.1
Event Manager Domain 1.18.1
Human Verification Data 1.16.3
Human Verification Domain 1.16.3
Human Verification Presentation 1.16.3
Payment Data 1.17.3
Payment Domain 1.17.3
Payment Presentation 1.17.3
Plan Data 1.18.1
Plan Domain 1.18.1
Plan Presentation 1.18.1
2021-11-16 17:26:50 +00:00
Mateusz Armatys f92dc10864 Merge branch 'fix/cp2913-binary-incompatibility' into 'master'
Bump versions for libraries that use `presentation` module

See merge request proton/mobile/android/proton-libs!474
2021-11-16 16:15:23 +00:00
Mateusz Armatys 4d14921849 Bump versions for libraries that use `presentation` module 2021-11-16 16:10:58 +01:00
Vincent Brison 4b318c9ee5 Merge branch 'fix/android_module_sources' into 'master'
Ensure sources are set for published artifacts

See merge request proton/mobile/android/proton-libs!475
2021-11-16 14:04:06 +00:00
Vincent Brison 12a73be47f Ensure sources are set for published artifacts 2021-11-16 14:00:15 +01:00
cibot aad46c3a85 [release] Auth Data 1.18.3
Auth Domain 1.18.3
Auth 1.18.3
Auth Presentation 1.18.3
2021-11-15 19:27:47 +00:00
Mateusz Armatys dd91a6d0e8 Merge branch 'feat/cp-2788-proton-test-login' into 'master'
Ability to login before starting a test

See merge request proton/mobile/android/proton-libs!458
2021-11-15 18:35:34 +00:00
Mateusz Armatys 88cce17b20 Auth Version and Changelog 2021-11-15 19:01:22 +01:00
Mateusz Armatys be84497a75 Add `LoginTestHelper` and `ProtonTestEntryPoint` that can be used in instrumented tests to log in without the need to perform any UI actions. 2021-11-15 18:58:27 +01:00
cibot a019d984d5 [release] Auth Data 1.18.2
Auth Domain 1.18.2
Auth 1.18.2
Auth Presentation 1.18.2
2021-11-15 10:57:07 +00:00
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