Network library changes (#542)

- Allows for http2
- Caches a global instance of kotlinx-serialization `Json` and configures it with a bit more leniency.
- Moves okhttp's dependency strings to the .toml file
- Switches off logging for release builds
This commit is contained in:
Marco Romano 2023-06-06 15:33:30 +02:00 committed by GitHub
parent 7308428596
commit 1d6f4e3c68
5 changed files with 35 additions and 40 deletions

View file

@ -216,7 +216,8 @@ dependencies {
implementation(libs.coil)
implementation(platform(libs.network.okhttp.bom))
implementation("com.squareup.okhttp3:logging-interceptor")
implementation(libs.network.okhttp.logging)
implementation(libs.serialization.json)
implementation(libs.dagger)
kapt(libs.dagger.compiler)