Damir Mihaljinec
47da262c5b
feat(network): Added handler for feature disabled proton error code.
2025-12-09 17:02:45 +00:00
Mateusz Armatys
3d2561cd4d
refactor(device-migration, network): Add ErrorMessageContext for obtaining error messages from a Throwable.
2025-04-28 13:54:57 +02: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
Algirdas Pundzius
39dfb1060b
feat(network)!: Add AppClock implementation which uses time synchronized with API.
2023-09-29 08:39:49 +00:00
Neil Marietta
ebfa017f37
chore!: Upgraded AGP to 8.0.2 (+Java 17).
2023-07-04 16:22:38 +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
yzhang
c3fa5ce2d8
feat(human-verification): Add proof of work to the core library.
2023-04-14 03:21:07 -07: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 Armatys
c5071d7815
build: Optimize dependencies.
2022-07-28 16:07:58 +02:00
Mateusz Armatys
d444094979
refactor: Use @Binds whenever possible (instead of @Provide).
2022-07-25 19:55:43 +02:00
Mateusz Armatys
0b1c15ba6f
feat(network): ApiManagerFactory will be provided by network-dagger module.
...
The client apps will additionally need to provide:
- array of doh providers (`@DohProviderUrls`)
- array of certificate pins (`@CertificatePins`)
- list of alternative api pins (`@AlternativeApiPins`)
2022-07-25 19:55:43 +02:00
Mateusz Armatys
11f41d5fc1
feat(network): Provide ServerTimeListener (for updating pgp-crypto time).
2022-07-25 19:55:43 +02:00
Mateusz Armatys
954ec24591
refactor: Use CoroutineScopeProvider and DispatcherProvider when possible.
...
- Use `CoroutineScopeProvider` instead of creating custom (global) `CoroutineScope` instances.
- Use `DispatcherProvider` instead of calling methods on `kotlinx.coroutines.Dispatchers` object.
2022-07-25 19:55:43 +02:00
Mateusz Armatys
60fdef185f
feat(network)!: The base API URL needs to be provided in client app dagger module.
...
The URL needs to be an instance of `okhttp3.HttpUrl` with `@BaseProtonApiUrl` qualifier.
In turn, clients no longer need to provide `ClientIdProvider`.
2022-07-25 19:55:43 +02:00
Mateusz Armatys
b4e2f86076
feat(human-verification, network)!: Provide a shared (singleton) instance of OkHttpClient.
...
The provided `OkHttpClient` instance is not customized in any way,
and can be used to contruct your own HTTP clients (`OkHttpClient.newBuilder`).
BREAKING-CHANGE: `ApiManagerFactory` takes `OkHttpClient` as a constructor argument. To inject, use `@SharedOkHttpClient` annotation.
2022-07-25 19:55:43 +02:00
Mateusz Armatys
454bf42593
style: Rename classes with @dagger.Module annotation to Core...Module.
2022-07-25 19:55:43 +02:00
Mateusz Armatys
1a97ecc7bb
feat: All Core modules have a corresponding *-dagger module.
2022-07-25 19:55:42 +02:00
Mateusz Armatys
749b6b488c
Revert "Create Dagger module for all Core modules"
...
This reverts commit 94ca12a41e .
2022-07-25 19:53:13 +02:00
Jorge Martin
94ca12a41e
Create Dagger module for all Core modules
2022-07-25 16:47:31 +00:00
Jorge Martin
316f8a7136
Add validation to the version sent to the API in x-pm-appversion header
2022-03-25 07:58:33 +00:00
Mateusz Armatys
4e3752fcdf
API dump for network-* modules
2022-02-25 13:47:45 +01:00
Mateusz Armatys
78ba8126a0
New implementation of ProtonCookieStore, which implements okhttp3.CookieJar (and doesn't use java.net.HttpCookie)
2022-02-25 13:47:45 +01:00