Skip to content

Commit

Permalink
RxHttp 版本升级至2.4.1版本
Browse files Browse the repository at this point in the history
  • Loading branch information
liujingxing committed Sep 26, 2020
1 parent 3bd4005 commit b3c36d6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ android {
}
dependencies {
//以下3个为必须,
implementation 'com.ljx.rxhttp:rxhttp:2.4.0'
implementation 'com.ljx.rxhttp:rxhttp:2.4.1'
implementation 'com.squareup.okhttp3:okhttp:4.8.1' //rxhttp v2.2.2版本起,需要手动依赖okhttp
kapt 'com.ljx.rxhttp:rxhttp-compiler:2.4.0' //生成RxHttp类,非kotlin项目,请使用annotationProcessor代替kapt
kapt 'com.ljx.rxhttp:rxhttp-compiler:2.4.1' //生成RxHttp类,非kotlin项目,请使用annotationProcessor代替kapt

implementation 'com.ljx.rxlife:rxlife-coroutine:2.0.1' //管理协程生命周期,页面销毁,关闭请求

Expand All @@ -96,11 +96,11 @@ dependencies {
implementation 'com.ljx.rxlife3:rxlife-rxjava:3.0.0' //管理RxJava3生命周期,页面销毁,关闭请求

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

Expand Down
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"

implementation project(":rxhttp")
kapt project(':rxhttp-compiler')
// implementation project(":rxhttp")
// kapt project(':rxhttp-compiler')

implementation "com.squareup.okhttp3:okhttp:${okhttp_version}"

// implementation "com.ljx.rxhttp:rxhttp:${rxhttp_version}"
// kapt "com.ljx.rxhttp:rxhttp-compiler:${rxhttp_version}"
implementation "com.ljx.rxhttp:rxhttp:${rxhttp_version}"
kapt "com.ljx.rxhttp:rxhttp-compiler:${rxhttp_version}"

implementation 'com.ljx.rxlife:rxlife-coroutine:2.0.1'

Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ org.gradle.jvmargs=-Xmx1536m

okhttp_version=4.8.1

rxhttp_version=2.4.0
rxhttp_next_version=2.4.1
rxhttp_converter_version=2.4.0
rxhttp_version=2.4.1
rxhttp_next_version=2.4.2
rxhttp_converter_version=2.4.1

fastjson_version=1.2.73
jackson_version=2.11.1
Expand Down

0 comments on commit b3c36d6

Please sign in to comment.