-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network library changes #542
Conversation
7f92e1d
to
eb55ff3
Compare
- 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
eb55ff3
to
2cbefc3
Compare
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## develop #542 +/- ##
========================================
Coverage 51.35% 51.35%
========================================
Files 762 762
Lines 18511 18510 -1
Branches 3990 3990
========================================
Hits 9506 9506
+ Misses 7344 7343 -1
Partials 1661 1661
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
): OkHttpClient { | ||
return OkHttpClient.Builder() | ||
// workaround for #4669 | ||
.protocols(listOf(Protocol.HTTP_1_1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was a workaround for element-hq/element-android#4669, but I guess in this project, we will not have the same issue.
.addInterceptor(httpLoggingInterceptor) | ||
.build() | ||
fun providesJson(): Json = Json { | ||
ignoreUnknownKeys = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I have also added this on my branch, but my branch is far from being mergeable :)
- 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
Json
and configures it with a bit more leniency.