Skip to content

Commit

Permalink
RxHttp版本更新至2.6.0,并迁移至jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
liujingxing committed May 11, 2021
1 parent f8a8ef8 commit 6e8bdbf
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ android {
}

dependencies {
implementation 'com.ljx.rxhttp:rxhttp:2.5.7'
implementation 'com.github.liujingxing.rxhttp:rxhttp:2.6.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.1'
kapt 'com.ljx.rxhttp:rxhttp-compiler:2.5.7' //Use the annotationProcessor instead of kapt, if you use Java
kapt 'com.github.liujingxing.rxhttp:rxhttp-compiler:2.6.0' //Use the annotationProcessor instead of kapt, if you use Java
}
```

Expand All @@ -57,23 +57,23 @@ android {
}
}
dependencies {
implementation 'com.ljx.rxlife:rxlife-coroutine:2.0.1' //Coroutine, Automatic close request
implementation 'com.github.liujingxing.rxlife:rxlife-coroutine:2.1.0' //Coroutine, Automatic close request

//rxjava2 (RxJava2/Rxjava3 select one)
implementation 'io.reactivex.rxjava2:rxjava:2.2.8'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.ljx.rxlife2:rxlife-rxjava:2.0.0' //RxJava2, Automatic close request
implementation 'com.github.liujingxing.rxlife:rxlife-rxjava2:2.1.0' //RxJava2, Automatic close request

//rxjava3
implementation 'io.reactivex.rxjava3:rxjava:3.0.6'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'com.ljx.rxlife3:rxlife-rxjava:3.0.0' //RxJava3, Automatic close request
implementation 'com.github.liujingxing.rxlife:rxlife-rxjava3:2.1.0' //RxJava3, Automatic close request

implementation 'com.ljx.rxhttp:converter-fastjson:2.5.7'
implementation 'com.ljx.rxhttp:converter-jackson:2.5.7'
implementation 'com.ljx.rxhttp:converter-moshi:2.5.7'
implementation 'com.ljx.rxhttp:converter-protobuf:2.5.7'
implementation 'com.ljx.rxhttp:converter-simplexml:2.5.7'
implementation 'com.github.liujingxing.rxhttp:converter-fastjson:2.6.0'
implementation 'com.github.liujingxing.rxhttp:converter-jackson:2.6.0'
implementation 'com.github.liujingxing.rxhttp:converter-moshi:2.6.0'
implementation 'com.github.liujingxing.rxhttp:converter-protobuf:2.6.0'
implementation 'com.github.liujingxing.rxhttp:converter-simplexml:2.6.0'
}
```

Expand Down
20 changes: 10 additions & 10 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ android {
}

dependencies {
implementation 'com.ljx.rxhttp:rxhttp:2.5.7'
implementation 'com.github.liujingxing.rxhttp:rxhttp:2.6.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.1' //rxhttp v2.2.2版本起,需要手动依赖okhttp
kapt 'com.ljx.rxhttp:rxhttp-compiler:2.5.7' //生成RxHttp类,纯Java项目,请使用annotationProcessor代替kapt
kapt 'com.github.liujingxing.rxhttp:rxhttp-compiler:2.6.0' //生成RxHttp类,纯Java项目,请使用annotationProcessor代替kapt
}
```

Expand All @@ -92,24 +92,24 @@ android {
}
}
dependencies {
implementation 'com.ljx.rxlife:rxlife-coroutine:2.0.1' //管理协程生命周期,页面销毁,关闭请求
implementation 'com.github.liujingxing.rxlife:rxlife-coroutine:2.1.0' //管理协程生命周期,页面销毁,关闭请求

//rxjava2 (RxJava2/Rxjava3二选一,使用asXxx方法时必须)
implementation 'io.reactivex.rxjava2:rxjava:2.2.8'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.ljx.rxlife2:rxlife-rxjava:2.0.0' //管理RxJava2生命周期,页面销毁,关闭请求
implementation 'com.github.liujingxing.rxlife2:rxlife-rxjava2:2.1.0' //管理RxJava2生命周期,页面销毁,关闭请求

//rxjava3
implementation 'io.reactivex.rxjava3:rxjava:3.0.6'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'com.ljx.rxlife3:rxlife-rxjava:3.0.0' //管理RxJava3生命周期,页面销毁,关闭请求
implementation 'com.github.liujingxing.rxlife:rxlife-rxjava3:2.1.0' //管理RxJava3生命周期,页面销毁,关闭请求

//非必须,根据自己需求选择 RxHttp默认内置了GsonConverter
implementation 'com.ljx.rxhttp:converter-fastjson:2.5.7'
implementation 'com.ljx.rxhttp:converter-jackson:2.5.7'
implementation 'com.ljx.rxhttp:converter-moshi:2.5.7'
implementation 'com.ljx.rxhttp:converter-protobuf:2.5.7'
implementation 'com.ljx.rxhttp:converter-simplexml:2.5.7'
implementation 'com.github.liujingxing.rxhttp:converter-fastjson:2.6.0'
implementation 'com.github.liujingxing.rxhttp:converter-jackson:2.6.0'
implementation 'com.github.liujingxing.rxhttp:converter-moshi:2.6.0'
implementation 'com.github.liujingxing.rxhttp:converter-protobuf:2.6.0'
implementation 'com.github.liujingxing.rxhttp:converter-simplexml:2.6.0'
}
```

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ org.gradle.jvmargs=-Xmx1536m

okhttp_version=4.9.1
rxlife_version=2.1.0
rxhttp_version=2.6.0-beta15
rxhttp_version=2.6.0
rxhttp_next_version=2.6.0

fastjson_version=1.2.73
Expand Down
8 changes: 4 additions & 4 deletions maven_dependency.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

<!--必须-->
<dependency>
<groupId>com.ljx.rxhttp</groupId>
<groupId>com.github.liujingxing.rxhttp</groupId>
<artifactId>rxhttp</artifactId>
<version>2.5.7</version>
<version>2.6.0</version>
</dependency>

<!-- 非必须 RxJava2/RxJava3 二选一或都不选 -->
Expand Down Expand Up @@ -46,9 +46,9 @@
<!--必须-->
<annotationProcessorPaths>
<path>
<groupId>com.ljx.rxhttp</groupId>
<groupId>com.github.liujingxing.rxhttp</groupId>
<artifactId>rxhttp-compiler</artifactId>
<version>2.5.7</version>
<version>2.6.0</version>
</path>
</annotationProcessorPaths>

Expand Down

0 comments on commit 6e8bdbf

Please sign in to comment.