-
Notifications
You must be signed in to change notification settings - Fork 7.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
RxJava 2.2.13 Proguard issue #6670
Comments
You may suppress the warning apparently, one of these could work:
|
I'm not sure what else we could do. This is a problem with the RS library but I don't think they know or consider ProGuard & Android environment issues. |
Can't remember where I posed but R8 is complaining too:
Let's ship rules so R8 can read them. |
Okay, but I don't know how to setup gradle to include a file in the |
I believe it's as simple as this: diff --git a/src/main/resources/META-INF/proguard/rxjava2.pro b/src/main/resources/META-INF/proguard/rxjava2.pro
new file mode 100644
index 000000000..b9994780a
--- /dev/null
+++ b/src/main/resources/META-INF/proguard/rxjava2.pro
@@ -0,0 +1,2 @@
+# Reactive Stream specification is bringing them but not using them.
+-dontwarn java.util.concurrent.Flow
\ No newline at end of file I wanted to submit a PR but RxJava does not work with Gradle 5.x and the Gradle Wrapper 4.x that is being used does not like my Java 11 version 🤷♂️ |
After updating to RxJava 2.2.13 we get the following proguard warnings and the build fails:
I assume it's because of the changes from Reactive Streams 1.0.3:
Any advice on how to fix Proguard?
The text was updated successfully, but these errors were encountered: