adapter

Adapter between RxJava v1 and v2

License

License

Apache License Version 2.0
Categories

Categories

RxJava Container Microservices Reactive libraries
GroupId

GroupId

com.artemzin.rxjavav1v2adapter
ArtifactId

ArtifactId

adapter
Last Version

Last Version

0.1.1-developer-preview
Release Date

Release Date

Type

Type

jar
Description

Description

adapter
Adapter between RxJava v1 and v2
Project URL

Project URL

https://github.com/artem-zinnatullin/RxJavaV1V2Adapter
Source Code Management

Source Code Management

https://github.com/artem-zinnatullin/RxJavaV1V2Adapter

Download adapter

How to add to project

<!-- https://jarcasting.com/artifacts/com.artemzin.rxjavav1v2adapter/adapter/ -->
<dependency>
    <groupId>com.artemzin.rxjavav1v2adapter</groupId>
    <artifactId>adapter</artifactId>
    <version>0.1.1-developer-preview</version>
</dependency>
// https://jarcasting.com/artifacts/com.artemzin.rxjavav1v2adapter/adapter/
implementation 'com.artemzin.rxjavav1v2adapter:adapter:0.1.1-developer-preview'
// https://jarcasting.com/artifacts/com.artemzin.rxjavav1v2adapter/adapter/
implementation ("com.artemzin.rxjavav1v2adapter:adapter:0.1.1-developer-preview")
'com.artemzin.rxjavav1v2adapter:adapter:jar:0.1.1-developer-preview'
<dependency org="com.artemzin.rxjavav1v2adapter" name="adapter" rev="0.1.1-developer-preview">
  <artifact name="adapter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.artemzin.rxjavav1v2adapter', module='adapter', version='0.1.1-developer-preview')
)
libraryDependencies += "com.artemzin.rxjavav1v2adapter" % "adapter" % "0.1.1-developer-preview"
[com.artemzin.rxjavav1v2adapter/adapter "0.1.1-developer-preview"]

Dependencies

compile (2)

Group / Artifact Type Version
io.reactivex : rxjava jar 1.1.9
io.reactivex.rxjava2 : rxjava jar 2.0.0-DP0-SNAPSHOT

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.assertj : assertj-core jar 1.7.1

Project Modules

There are no modules declared in this project.

Deprecated

Since David Karnok released his own version of such library next day I released this library and promotes it everywhere, this project no longer make sense, so please use his RxJava2Interop.

RxJava v1 <-> v2 Adapter

Adapter between RxJava v1 and v2.

###With this library you will be able to convert:

  • v1 Observable to v2 Observable and vice versa.
  • v1 Observable to v2 Flowable and vice versa.
  • v1 Single to v2 Single and vice versa.
  • v1 Consumable to v2 Consumable and vice versa.

####Download

repositories {
    maven { url 'https://oss.jfrog.org/libs-snapshot' } // For RxJava v2 developer preview.
}

dependencies {
    compile 'io.reactivex.rxjava2:rxjava:2.0.0-DP0-SNAPSHOT'
    compile 'com.artemzin.rxjavav1v2adapter:adapter:0.1.1-developer-preview'
}

####Usage example:

Observable o1 = RxJavaV1V2Adapter.o2ToO1(o2);

####TODO

  • Add v1 Single <-> v2 Single.
  • Add v1 Consumable <-> v2 Consumable.
  • Kotlin part: extension functions val omg = Observable.just("wow").toO2().
  • Connect v1 Observable Backpressure with v2 Flowable Backpressure, currently it runs in unbounded mode.

###Warning

This library is unstable simply because it depends on SNAPSHOT version of RxJava v2. Once RxJava v2 will be released this library will be realeased as stable too.

Versions

Version
0.1.1-developer-preview
0.1.0-developer-preview