Skip to content

Commit

Permalink
rxhttp升级至3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
liujingxing committed Feb 25, 2023
1 parent e6d7fee commit da41d71
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ android {
plugins {
// kapt/ksp choose one
// id 'kotlin-kapt'
id 'com.google.devtools.ksp' version '1.7.20-1.0.7'
id 'com.google.devtools.ksp' version '1.8.0-1.0.9'
}

//Make IDE aware of generated code if you use ksp
Expand All @@ -153,7 +153,7 @@ android {
}

dependencies {
def rxhttp_version = '3.0.1'
def rxhttp_version = '3.0.2'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation "com.github.liujingxing.rxhttp:rxhttp:$rxhttp_version"
// ksp/kapt/annotationProcessor choose one
Expand All @@ -179,8 +179,8 @@ implementation "com.github.liujingxing.rxhttp:converter-simplexml:$rxhttp_versio
<summary>RxHttp + RxJava3</summary>

```java
implementation 'io.reactivex.rxjava3:rxjava:3.1.5'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.1'
implementation 'io.reactivex.rxjava3:rxjava:3.1.6'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.2'
implementation 'com.github.liujingxing.rxlife:rxlife-rxjava3:2.2.2' //RxJava3, Automatic close request
```

Expand All @@ -200,7 +200,7 @@ implementation 'com.github.liujingxing.rxlife:rxlife-rxjava2:2.2.2' //RxJava2, A

```java
ksp {
arg("rxhttp_rxjava", "3.1.5")
arg("rxhttp_rxjava", "3.1.6")
}
```

Expand All @@ -212,7 +212,7 @@ ksp {
```java
kapt {
arguments {
arg("rxhttp_rxjava", "3.1.5")
arg("rxhttp_rxjava", "3.1.6")
}
}
```
Expand All @@ -228,7 +228,7 @@ android {
javaCompileOptions {
annotationProcessorOptions {
arguments = [
rxhttp_rxjava: '3.1.5',
rxhttp_rxjava: '3.1.6',
]
}
}
Expand Down
14 changes: 7 additions & 7 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@

| 功能说明 | RxHttp | [Retrofit](https://github.com/square/retrofit) |
| --- | :---: | :---: |
| 版本| v3.0.1| v2.9.0 |
| 版本| v3.0.2| v2.9.0 |
| 状态| 维护中| 维护中 |
| 标准RESTful风格|||
| 学习成本|||
Expand Down Expand Up @@ -197,7 +197,7 @@ android {
}
//3、添加依赖
dependencies {
def rxhttp_version = '3.0.1'
def rxhttp_version = '3.0.2'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation "com.github.liujingxing.rxhttp:rxhttp:$rxhttp_version"
annotationProcessor "com.github.liujingxing.rxhttp:rxhttp-compiler:$rxhttp_version"
Expand Down Expand Up @@ -229,7 +229,7 @@ plugins {
}

dependencies {
def rxhttp_version = '3.0.1'
def rxhttp_version = '3.0.2'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation "com.github.liujingxing.rxhttp:rxhttp:$rxhttp_version"
kapt "com.github.liujingxing.rxhttp:rxhttp-compiler:$rxhttp_version"
Expand Down Expand Up @@ -266,11 +266,11 @@ android {
}
//3、添加插件及依赖
plugins {
id 'com.google.devtools.ksp' version '1.7.20-1.0.7'
id 'com.google.devtools.ksp' version '1.8.0-1.0.9'
}

dependencies {
def rxhttp_version = '3.0.1'
def rxhttp_version = '3.0.2'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
implementation "com.github.liujingxing.rxhttp:rxhttp:$rxhttp_version"
ksp "com.github.liujingxing.rxhttp:rxhttp-compiler:$rxhttp_version"
Expand All @@ -292,8 +292,8 @@ dependencies {

```java
//RxJava3
implementation 'io.reactivex.rxjava3:rxjava:3.1.5'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'io.reactivex.rxjava3:rxjava:3.1.6'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.2'
implementation 'com.github.liujingxing.rxlife:rxlife-rxjava3:2.2.2' //管理RxJava3生命周期,页面销毁,关闭请求

//RxJava2
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ org.gradle.jvmargs=-Xmx1536m
okhttp_version=4.10.0
rxjava_version=3.1.6
rxlife_version=2.2.2
rxhttp_version=3.0.1
rxhttp_version=3.0.2

lifecycle_version=2.5.1
ksp_version=1.8.0-1.0.9
Expand Down
4 changes: 2 additions & 2 deletions maven_dependency.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.github.liujingxing.rxhttp</groupId>
<artifactId>rxhttp</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
</dependency>

<!-- 非必须 RxJava2/RxJava3 二选一或都不选 -->
Expand Down Expand Up @@ -48,7 +48,7 @@
<path>
<groupId>com.github.liujingxing.rxhttp</groupId>
<artifactId>rxhttp-compiler</artifactId>
<version>3.0.1</version>
<version>3.0.2</version>
</path>
</annotationProcessorPaths>

Expand Down

0 comments on commit da41d71

Please sign in to comment.