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
cb493af7a7
Add gues hole support into the network module.
2021-11-22 15:01:26 +00:00
Mateusz Armatys
976b765024
Update default network timeout to 30 seconds
2021-11-22 11:11:12 +01:00
Benjamin Monjoie
bd78d8069d
Delay OkHttp's initialization
...
OkHttp's cache initialization is blocking the UI.
As per this trick: https://www.zacsweers.dev/dagger-party-tricks-deferred-okhttp-init/ ,
it should be better to initialize OkHttp in Retrofit's `callFactory` method.
This currently doesn't solve the issue with coroutines but has no downside either.
Indeed, the `callFactory` SAM is called on the `Dispatcher` which initiate the call.
It's often the `viewModelScope` which is using `Dispatchers.Main`.
Hopefully, an update to Retrofit will solve this issue.
2021-10-07 15:39:19 +00:00
Jorge Martín
102f40d3d6
Add Atlas Proxy for testing, ExtraHeaderProvider to add arbitrary headers to all requests
2021-10-06 09:31:42 +02:00
Neil Marietta
ae9280d50b
KeyStoreCrypto fallback if Android KeyStore is not properly working.
2021-09-21 16:25:03 +02:00
Neil Marietta
a122d9e893
Added optional OkHttp Cache.
...
Removed isConnectedToNetwork check before trying a call.
2021-08-19 09:15:15 +00:00
Neil Marietta
a5bcf95dae
Network: Added TooManyRequest error handling per Session.
2021-08-13 15:19:12 +02:00
Neil Marietta
4784644591
Added ServerTimeListener/ServerTimeInterceptor, updating PGPCrypto time.
2021-06-21 14:11:04 +02:00
Neil Marietta
1b7e6eb9e9
Fixed ClientId initialisation issue.
...
Added ClientIdProvider (rely on ProtonCookieStore).
2021-06-03 17:18:11 +02:00