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
OkHttp extension ships with a ProGuard rule that breaks newer versions of OkHttp #10310
Comments
Thanks for reporting. I can repro this behaviour with the steps from above. I can also confirm that removing the mentioned line from the proguard rules solves the problem. It seems to work with I'm not sure why we had this line actually. We followed the advice on the okhttp README at that time when it has been added. Will check with okhttp folks. |
This page suggests we can just remove our proguard config at least for gradle: https://square.github.io/okhttp/features/r8_proguard/ |
Thanks for taking a look! I think that it should be safe to delete the
I believe that this is because at the time OkHttp didn't have embedded rules. The extension's rules were added on 2018-04-03, and OkHttp's rules were added on 2018-06-15. |
Yep - please remove any lines related to OkHttp from your file. Basically since 3.11.0 our advice has been to rely on the embedded rules. So we stripped out all the other rules, and have taken advantage of that when moving files around. |
Any update on this? |
Sorry, I haven't reference the commit in this issue. This landed on dev-v2 with this change: I'm closing this issue. Please let me know if you think there is something missing. Thanks. |
ExoPlayer Version
2.17.1
Devices that reproduce the issue
All
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
build.gradle
file:minifyEnabled true
Expected result
getEffectiveTldPlusOne
should returnexample.com
.Actual result
getEffectiveTldPlusOne
crashes with the following exception:This happens because of this consumer rule that ships with the OkHttp extension:
ExoPlayer/extensions/okhttp/proguard-rules.txt
Line 8 in c386644
It probably stopped working due to this change in OkHttp: square/okhttp#6974
Media
N/A
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.The text was updated successfully, but these errors were encountered: