smallrye / smallrye-reactive-streams-operators

Implementation of the MicroProfile Reactive Streams Operators specification
https://www.smallrye.io/smallrye-reactive-streams-operators/
Apache License 2.0
20 stars 9 forks source link

Compatibility with Android (aka JDK7) #79

Closed kamalmarhubi closed 5 years ago

kamalmarhubi commented 5 years ago

I was hoping to pair this library with a custom Reactive Streams implementation targeting Android. However, Android effectively only has JDK7 libraries available. (You can get JDK8 libraries by dropping support for about 35% of devices out there... not super palatable!)

In the section on the Reactive Streams dependency, the spec specifically calls out a desire to remain compatible with JDKs older than 9. Because of use of CompletionStage, Function and a few others, this actually means only JDK8. Is there any possibility of a version of this library that omits the those dependencies, or uses a vendorerd/shaded equivalent?

cescoffier commented 5 years ago

For Android, you should use RX Java 2 directly. This project is JDK 8+.