-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Crash after R8/Proguard #24
Comments
Hey @Nojipiz, this is a known issue from OkHttp. This issue will be fixed in the next release. Thanks for creating this issue! |
Hey @Nojipiz, 1.0.7 stable has been released. Thanks for the issue! |
Hey @PavlosTze do you also face the issue from the retrofit-adapter-arrow library? |
@nvkleban 1.0.12 has been released and it contains the proguard rules itself. |
@skydoves Yes, I'm using the EitherCallAdapterFactory, and I'm having constant crashes on the "Release" version (where Proguard is used - Debug version works OK). As soon as I added the following line in Proguard the issue has been fixed: I was getting a bit different error, although the cause (Proguard) was the same:
|
@skydoves Hi there
I'm using latest version of both retrofit and the adapter. Here is the stack trace for your refrence:
|
I got the same error mentioned here by @HeyPouya |
Please fix this bug |
Please complete the following information:
Describe the Bug:
After minify the code with R8, can't use the library anymore, and throw an exception:
java.lang.IllegalArgumentException: Unable to create call adapter for retrofit2.Call<arrow.core.Either>
I have used the proguard rules described in Retrofit2 repository:
According to the ArrowKt repository, it doesn't need extra rules in the proguard file.
Any idea of why this happen?
Expected Behavior:
It should work normally.
The text was updated successfully, but these errors were encountered: