211 Commits
Author SHA1 Message Date
Damir Mihaljinec 47da262c5b feat(network): Added handler for feature disabled proton error code. 2025-12-09 17:02:45 +00:00
Nicolas Mouchel c10115b0e1 fix(network): network blocked during unit tests (drive) 2025-09-17 11:11:01 +00:00
Mateusz Markowicz b60bf4e699 feat(network): Provide additional DoH providers in case primary ones are blocked.
VPNAND-2332
2025-09-16 12:07:27 +00:00
Denys Zelenchuk ea6e3a67ef test: Added tests to latest subscription and registration flows, video recording and logs collection, reworked DiskCookieStorage to use MultiProcessDataStoreFactory; improved gitlab yml configuration. 2025-07-31 11:06:30 +02:00
Marcin Simonides 869620fd80 feat(network-data): add support for ApiResult<ByteArray>. 2025-07-29 13:29:19 +00:00
Rob Oblack 8194813206 Safe-parse error details 2025-07-10 07:53:18 +00:00
Marcin Simonides 44e0a62821 chore(network-domain)!: Suspending shouldUseDoh.
Change ApiClient.shouldUseDoh to a suspend function.
2025-06-17 10:37:53 +02:00
Damir Mihaljinec bf044e0c78 chore(network): Add details as JsonObject to ApiResult.Error.ProtonData. 2025-03-12 10:58:18 +00:00
Marcin Simonides ae6a12834e chore(network-data): Replace apache-commons with base32 library. 2025-02-26 10:14:49 +00:00
Mateusz Armatys 005682451a build: Update Kover (0.7.1 -> 0.8.2). 2024-07-09 10:23:13 +00:00
dkadrikj 2f46ce65ed chore: Remove binary compatibility validator. 2024-07-05 15:08:05 +02:00
Damir Mihaljinec 23c10af742 chore(network): Allow adding OKHttp interceptors through dependency injection 2024-04-09 08:59:59 +00:00
Mateusz Armatys 31514a7a91 fix(network): Pass x-pm-payment-info-token header if payment token is present.
For now, the value of `x-pm-payment-info-token` is the same as `x-pm-human-verification-token`. However, using `x-pm-human-verification-token-type: payment` is deprecated, but `x-pm-payment-info-token` is not implemented in every endpoint we need.
2024-03-22 17:11:07 +00:00
Neil Marietta 83b4bb4fb4 fix(network): Fixed Missing Scope error codes (scopes: locked/password). 2024-03-05 13:38:29 +00:00
Neil Marietta c517bba3ee chore: Upgraded Kotlin to 1.9.22 (and needed dependencies). 2024-02-28 18:09:18 +00:00
Neil Marietta 82be3754e6 feat: Added Custom Tabs support for LoginSso Activity. 2024-01-29 14:36:16 +00:00
Mateusz Armatys cde18282f2 build(coverage): Set up min and max bounds for coverage. 2023-12-19 19:45:50 +01:00
Damir Mihaljinec 10c2cadc73 fix(network): Update server time only on successful response. 2023-11-03 15:07:46 +00:00
Algirdas Pundzius 39dfb1060b feat(network)!: Add AppClock implementation which uses time synchronized with API. 2023-09-29 08:39:49 +00:00
Neil Marietta 8364b7748e refactor!: Removed Logger.log function. 2023-09-14 10:01:43 +00:00
Mateusz Armatys 66de03337c feat(util-android-sentry): Sentry for Account team. 2023-08-16 16:54:47 +02:00
Neil Marietta 49b0bd8eb5 refactor: Moved LogTag to domain layer. 2023-07-25 13:13:21 +02:00
yzhang 4d52ad2fb3 feat(pow): Add pow challenge solver duration for backend. 2023-07-20 02:41:56 +00:00
yzhang 1a372c0bbb feat(pow): Fix pow issue on login with unauth session. 2023-07-20 02:41:56 +00:00
Neil Marietta ebfa017f37 chore!: Upgraded AGP to 8.0.2 (+Java 17). 2023-07-04 16:22:38 +02:00
Neil Marietta 144ff648bd chore: Upgraded Kotlin to 1.8.10 (+Dagger 2.46.1, +Compose to 1.4.3, +AppCompat 1.6.1, +Lifecycle 2.6.1, +Robolectric 4.10.3). 2023-07-04 15:13:07 +02:00
Neil Marietta 935597e324 refactor: SessionManager now hold a Mutex for any session write (centralized).
Session is now separated into Authenticated and Unauthenticated.
2023-07-03 17:35:58 +02:00
Mateusz Armatys 3c4499d45f feat(account-recovery): Cancelling account recovery attempt. 2023-06-15 16:34:31 +00:00
Neil Marietta b1a981dab0 refactor: Added BaseRetrofitApi scope for Api.safeCall.
fixup! feat(auth): Added SignIn with SSO WebView handling.
2023-06-05 10:10:06 +02:00
Neil Marietta 0d80434f7e build(coverage): Added Coverage verification to GitLab Job (koverVerify). 2023-05-11 10:22:24 +02:00
Mateusz Armatys 0eca3ff276 build: Rename proton extension name to protonBuild. 2023-05-09 12:10:17 +00:00
Mateusz Armatys 1b0ca7454a build: Add minimum branch and line coverages for existing modules. 2023-05-04 11:07:23 +00:00
yzhang c3fa5ce2d8 feat(human-verification): Add proof of work to the core library. 2023-04-14 03:21:07 -07:00
Mateusz Markowicz 5ce288ff04 feat(network): Make alt. cert verification method available for main route.
Clients should normally use regular method but for some testing environments
alt. routing method of cert verification will be used.
2023-03-29 14:57:33 +02:00
Mateusz Markowicz fe1cb103e6 chore(network, account-manager): More extensive logging for token refresh. 2023-03-08 18:01:20 +01:00
Nicolas Mouchel 4437485cce chore: Avoid creating SharedPreferences during hilt graph creation 2023-03-02 16:20:04 +00:00
Neil Marietta ce6d8ee44a refactor: Added prefix and version to Proton endpoints (auth, keys, users, addresses, organizations, settings). 2023-02-21 09:06:53 +00:00
dkadrikj ffb7cc51a2 feat(network): Added Opportunistic Unauthenticated Session Request. 2023-01-25 14:13:32 +01:00
Neil Marietta c0419686d4 feat!: Added Unauthenticated Session Support.
MIGRATION: Add AccountDatabase.MIGRATION_5.
2023-01-25 14:13:32 +01:00
Mateusz Markowicz 822ae647b7 feat(network): Support DNS A records for DoH responses. 2023-01-06 12:30:13 +01:00
Neil Marietta f7bca86c70 test: Removed deprecated Urls (PinningTests). 2023-01-03 10:45:23 +01:00
Mateusz Armatys b1c4e41746 test: Migrate tests to the new coroutines-test APIs. 2022-12-05 13:33:57 +00:00
Mateusz Markowicz c545f0d168 fix(network): Notify client about alternative proxies failures. 2022-11-23 09:50:15 +00:00
dkadrikj 73b2a59bd9 chore(network): Fix TimeoutOverride is not being respected. 2022-11-18 13:23:25 +00:00
Neil Marietta 9f331e77f3 fix(network-data): Fixed potential SerializationException on deserialize SerializableCookies. 2022-11-14 11:14:39 +01:00
Mateusz Markowicz a658bf7d13 fix(network): Introduces fine grained control of timeouts. 2022-10-07 12:21:52 +00:00
Mateusz Markowicz 1f71d0a4b6 fix(network): Remove timeouts for refreshing proxies.
Refreshing proxies can take a long time - in VPN it requires a user
action (getting VPN permission for Guest Hole). Instead use timeout for
running proxies after they are refreshed. There are still timeouts for
using DoH services so as long as Guest Hole doesn't kick-in there's
still a limit for refreshing proxies.
2022-10-07 12:21:52 +00:00
Mateusz Markowicz 1a0eeffb3c fix(network): Remove Bearer prefix when logging token. 2022-10-07 12:21:52 +00:00
Marino Meneghel 34a6c9219b fix: Pass test dispatcher to runTest method.
This is to solve test failures which started happening after updating
AGP to 7.1.3 (error `Detected use of different schedulers..`)
2022-09-28 17:50:17 +02:00
Neil Marietta 21fefb3cb6 refactor(network-data): Removed TrustKit dependency. 2022-09-13 12:56:24 +00:00