-
Notifications
You must be signed in to change notification settings - Fork 6k
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
How to use OkHttpDataSource #1157
Comments
Checkout my branch which use OkHttp 2.x I'll upgrade to 3.x after Facebook's Stetho supporting OkHttp 3.x. |
thanks this works great, any plans to submit this as a PR |
I'm unclear as to why you don't just take the existing demo app and replace each instantiation of
You have this:
Is it just a matter of documenting this more clearly somewhere? |
I'm too stupid...... You're right. |
@biodatacomp check this out |
Let's use this issue to track adding documentation to the corresponding Readme file. |
@biodatacomp I've force update my branch to match up with ExoPlayer 1.5.4, including OkHttp3 & Stetho. |
I see that I'm asking for this approach since I think it works nicely for e.g. Glide by using |
This enhancement is tracking:
|
In theory it should now be possible to include the OkHttp extension for V2 with:
Bintray link here. This doesn't seem to work for me at the moment. I'm unclear whether there's just a propagation delay in it being indexed, or whether something else is wrong. If anyone has any ideas, please let me know! |
Caused by
|
Yeah. Hence the "This doesn't seem to work for me at the moment" part...! |
The path should be the jCenter one
|
I don't really understand what you mean. Have you spotted an error? If so, please clarify exactly what it is. |
Ah, I see the problem now. I'm not entirely sure how to fix how that gets generated as part of the release process, but will take a look. |
Yes, we should do some trick to prevent compile project(":library") being wrote into pom. It should transform to jcenter artifact path. |
It's possible that using https://github.com/bintray/gradle-bintray-plugin instead of https://github.com/novoda/bintray-release resolves this problem. It looks like novoda/bintray-release#16 is tracking supporting this case for bintray-release. |
I've manually fixed the POM file for now, so the following should work:
Note that if you tried whilst it was broken, you may have to do some cache wiping on your machine. File->InvalidateCaches in Android Studio wasn't sufficient for me. Neither was deleting the .gradle directory in the project. I had to also delete the .gradle directory from my home directory (disclaimer: I don't know what the consequences are of doing that; so do it at your own risk; I just know that it helped for me!). |
I tried |
Am trying to figure out if/how to replace DefaultHttpDataSource with OkHttpDataSource
Was trying to evaluate the Okhttp for performance and other usecases.
The text was updated successfully, but these errors were encountered: