Reputation: 105
There is a Gradle module called okhttp-coroutines in OkHttp repository but I'm not sure if it's published to maven because I tried using it and I didn't get any error but also the import okhttp3.coroutines
is invalid as the coroutines
doesn't exist
implementation("com.squareup.okhttp3:okhttp-coroutines:4.12.0")
Upvotes: 2
Views: 563
Reputation: 105
It's looks like there is a different version for okhttp-coroutines
(not the same as okhttp
) which can be found in maven repository: https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp-coroutines
so this works:
implementation("com.squareup.okhttp3:okhttp-coroutines:5.0.0-alpha.14")
I know this thanks to Micheal
I should have done more search before posting a question.
Upvotes: 0