Commit Graph

1598 Commits

Author SHA1 Message Date
dkadrikj 519765b9bd Rename ServerConnectionListener.kt to ApiConnectionListener.kt,
ServerConnectionHandler.kt to ApiConnectionHandler.kt and
ServerConnectionException.kt to ApiConnectionException.kt
2021-11-22 15:01:26 +00:00
dkadrikj b69d40f9fb Update CHANGELOG.md and rename ServerConnectionListener.kt function. 2021-11-22 15:01:26 +00:00
dkadrikj 42b21ec123 renamed guesthole package into server connection 2021-11-22 15:01:26 +00:00
dkadrikj 5857b20674 Fix HV not showing when GH is active.
Address code review comments.
2021-11-22 15:01:26 +00:00
dkadrikj baf1e45f5e Fix for null path and query. 2021-11-22 15:01:26 +00:00
dkadrikj 7421141d26 Fix tests. 2021-11-22 15:01:26 +00:00
dkadrikj 42e8d4e55b Add CHANGELOG.md info for guest hole support feature in network module. 2021-11-22 15:01:26 +00:00
dkadrikj cb493af7a7 Add gues hole support into the network module. 2021-11-22 15:01:26 +00:00
cibot 9a5e54345b [release] Auth 1.18.5
Network 1.15.9
Contact 1.19.3
Payment 1.17.5
Auth Data 1.18.5
Auth Domain 1.18.5
Contact Data 1.19.3
Contact Domain 1.19.3
Auth Presentation 1.18.5
Contact Hilt 1.19.3
Network Data 1.15.9
Network Domain 1.15.9
Payment Data 1.17.5
Payment Domain 1.17.5
Payment Presentation 1.17.5
Util Kotlin 1.15.4
2021-11-22 14:56:50 +00:00
Vincent Brison 49b17af33b Merge branch 'fix/account_creation_failure_release_fix' into 'master'
Bump previous release to retrigger release

See merge request proton/mobile/android/proton-libs!486
2021-11-22 13:58:40 +00:00
Vincent Brison de3dbf4565 Bump previous release to retrigger release 2021-11-22 14:12:08 +01:00
Mateusz Armatys 5c785f61e9 Merge branch 'fix/cp-2714-account_creation_failure' into 'master'
Network timeout can cause account creation failure

See merge request proton/mobile/android/proton-libs!416
2021-11-22 10:50:17 +00:00
Mateusz Armatys bc4ae3163e Version and changelog 2021-11-22 11:11:13 +01:00
Mateusz Armatys b3454add82 FlowUtils: make both functions inline, add docs, change parameter name for `retryOnceWhen` 2021-11-22 11:11:13 +01:00
Mateusz Armatys 3b79c7a3f6 SignupViewModel: minor refactor
`createUser` and `createExternalUser` are now parametrized and they accept non-null values.
2021-11-22 11:11:13 +01:00
Mateusz Armatys f3f2efa010 Adjust `PerformCreate[ExternalEmail]User`:
- those use cases can no longer be called multiple times: calling them twice will likely result in "Account already exists" error
- the error recovery (when receiving "Account already exists" error) is in `SignupViewModel` (`catchWhen`)
2021-11-22 11:11:13 +01:00
Mateusz Armatys e904e6d786 Do not rely on HTTP error codes when deciding if error is recoverable 2021-11-22 11:11:13 +01:00
Mateusz Armatys 9b5b1ba463 Tests for recovering from error when setting up primary keys during the login 2021-11-22 11:11:13 +01:00
Mateusz Armatys 8c989cf6d6 SetupPrimaryKeysTest 2021-11-22 11:11:12 +01:00
Mateusz Armatys 24ec6108d1 SignupViewModelTest: retrying when server responds with "username taken" error 2021-11-22 11:11:12 +01:00
Mateusz Armatys c307ecbd03 Tests for handling case when a user already exists, when creating a new user 2021-11-22 11:11:12 +01:00
Mateusz Armatys 13e73be2ef Recover from "Primary key exists" error when creating user account. 2021-11-22 11:11:12 +01:00
Mateusz Armatys ff710350f3 Make sure that PerformCreate[ExternalEmail]User can be invoked multiple times without throwing errors
Recover from "Username already taken or not allowed" error when creating new user accounts.
2021-11-22 11:11:12 +01:00
Mateusz Armatys f4b7ecbb67 Add custom LogTag for auth-presentation module 2021-11-22 11:11:12 +01:00
Mateusz Armatys 0b4a91def0 Add Flow<T>.retryOnceWhen extension method 2021-11-22 11:11:12 +01:00
Mateusz Armatys 51ab246c28 Add RecoverableErrors 2021-11-22 11:11:12 +01:00
Mateusz Armatys f0bee56b9f Put all API error codes in `ResponseCodes` class 2021-11-22 11:11:12 +01:00
Mateusz Armatys 18c3f298ca Move `ResponseCodes` into network-domain, since the API response codes are exposed in `ProtonData` class, which belongs to network-domain. 2021-11-22 11:11:12 +01:00
Mateusz Armatys 976b765024 Update default network timeout to 30 seconds 2021-11-22 11:11:12 +01:00
cibot e620b676a8 [release] Event Manager Domain 1.19.2
Event Manager 1.19.2
Event Manager Data 1.19.2
2021-11-22 10:06:06 +00:00
Jorge Martin b05b583e58 Merge branch 'feat/add-success-and-failure-callbacks-to-event-manager' into 'master'
event-manager: Add onSuccess and onFailure callbacks to EventListener

See merge request proton/mobile/android/proton-libs!480
2021-11-22 09:10:20 +00:00
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