-
Notifications
You must be signed in to change notification settings - Fork 5
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
Proguard Issue with merging Rx Libs #6
Comments
Hi @GensaGames . I noticed that you are using RxJava2. We are currently using first version. That probably causes issues. Thank you! |
As I mentioned, necessary annotations were added to proguard. We have a lot of setting with rx in proguard files, but also tested with keeping all source throw "-keep class rx.** { ; }", nothing changed. I will update here with proguard. BTW, that source code from stacktrace, exist and used in many places in application (Rx Observable subsribe using Action on Complete and on Error), but crashing only this library. |
@GensaGames please post your proguard-rules files. Meanwhile, we will try to reproduce it on our side. |
Proguard file.
Could you please include exact version of libraries in your project, to check with local dependencies tree of Gfycat. |
Issue was solved by adding resolution strategy to the app gradle. For some reasons Gfycat source using Added configuration to avoid missing resource (in case your application using different and new versions or rx source, or rxandroid, which is the same in dependencies):
Please, let us know, why you referencing to so old source, and please, add exact version to the Doc. Thanks! |
Finally got what was wrong, it is not proguard issue. In version 1.1.7 rxJava changed Completable::subscribe signature From: public final Subscription subscribe(final Action0 onComplete, final Action1<? super Throwable> onError) { To: public final Subscription subscribe(final Action1<? super Throwable> onError, final Action0 onComplete) { So Gradle default library version resolution strategy is peak latest. We will release fix with next sdk version. |
As I said, not proguard issue. Please include exact version of the dependecies to the Doc. |
Tested on version 0.1.0 everything works Ok. After integration new 0.2.2 version faced with Proguard Issue below. Clean Gfycat Sample works Ok.
Configuration Proguard to -keep all Rx source, and Gfycat, didn't help. Note, that we used Rx all over application (and other libs, included method from stacktrace), but missed source only using Gfycat. Local Project Rx Libs:
The text was updated successfully, but these errors were encountered: