Upgrade Okio to 2.x
See original GitHub issueWe are writing an a Kotlin app that uses Lottie and OkHTTP. We are considering replacing Lottie due to the project’s reliance on Okio 1.x. This causes a circular dependency that is caught by Gradle when using OkHTTP 4.x and Lottie in the same project. I see that about a year ago the project added a comment // Do not ugprade to 2.0 because it will bring in Kotlin as a transitive dependency.
to the project’s build.gradle
. Has anything changed?
Steps to reproduce the behavior:
- Clone https://github.com/mozilla-mobile/fenix
- Change the mockwebserver value to a current 4.x release. ex:
4.5.0
- Compile debug app
- Circular dependency error from the compiler. OkHTTP wants Okio 2.x and Lottie wants Okio 1.x
https://github.com/mozilla-mobile/fenix/issues/8169#issuecomment-600231224
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:6
Top Results From Across the Web
Change Log - Okio
Most users should be able to upgrade from 2.x by just changing the version. If you're using Okio in a Kotlin Multiplatform project,...
Read more >Migration guides - Apollo GraphQL Docs
Migrating to 2.x ... Okio has been updated to 2.4.3 for Kotlin multiplatform. ... Note: while we initially considered upgrading Okhttp to version...
Read more >How to Update Your OKIOCAM T! (Windows) - Okiolabs
Click on the X in the top-right corner to close the OKIOCAM T Firmware Update app. We hope you all enjoy the new...
Read more >Migrate to v10 | Maps SDK | Android - Mapbox docs
Upgrading to use OkHttp / Okio 4.+. The Mapbox Maps SDK v10 is using OkHttp v4.9.0 by default under the hood. It is...
Read more >gnastnosaj / okhttp Download - JitPack
... dependency on Okio, a small library for high-performance I/O. It works with either Okio 1.x (implemented in Java) or Okio 2.x (upgraded...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looking at okio’s 2.0.0-rc1 release notes page they have the following notes about migrating from 1.x to 2.x
Doesn’t the circular dependency issue still exist?