Skip to content

Commit d3daa5c

Browse files
committed
将ProgressRequestBody中的原始RequestBody对外暴露
1 parent 47a434b commit d3daa5c

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
这个库是我在日常开发过程中积累下来的一些可复用组件,大部分都在我的工作项目和个人项目中有使用。
44

5-
最新版本: [![Maven Central](http://img.shields.io/badge/2018.06.18-com.mcxiaoke.next:core:1.5.3-brightgreen.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.mcxiaoke.next%22)
5+
最新版本: [![Maven Central](http://img.shields.io/badge/2018.06.18-com.mcxiaoke.next:core:1.5.4-brightgreen.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.mcxiaoke.next%22)
66

77
## Gradle集成
88

99
```groovy
1010
// core 核心库, 格式:jar和aar
11-
compile 'com.mcxiaoke.next:core:1.5.3'
11+
compile 'com.mcxiaoke.next:core:1.5.4'
1212
// task 异步任务库,格式:jar和aar
13-
compile 'com.mcxiaoke.next:task:1.5.3'
13+
compile 'com.mcxiaoke.next:task:1.5.4'
1414
// http HTTP组件, 格式:jar和aar
15-
compile 'com.mcxiaoke.next:http:1.5.3'
15+
compile 'com.mcxiaoke.next:http:1.5.4'
1616
// 函数操作组件
17-
compile 'com.mcxiaoke.next:functions:1.5.3'
17+
compile 'com.mcxiaoke.next:functions:1.5.4'
1818
// ui UI组件, 格式:aar
19-
compile 'com.mcxiaoke.next:ui:1.5.3'
19+
compile 'com.mcxiaoke.next:ui:1.5.4'
2020
// recycler EndlessRecyclerView, 格式:aar
21-
compile 'com.mcxiaoke.next:recycler:1.5.3'
21+
compile 'com.mcxiaoke.next:recycler:1.5.4'
2222
// extra-abc 依赖support-v7 AppCompat 格式:aar
23-
compile 'com.mcxiaoke.next:extras-abc:1.5.3'
23+
compile 'com.mcxiaoke.next:extras-abc:1.5.4'
2424
2525
```
2626

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
VERSION_NAME=1.5.3
2-
VERSION_CODE=1503
1+
VERSION_NAME=1.5.4
2+
VERSION_CODE=1504
33
GROUP=com.mcxiaoke.next
44

55
POM_DESCRIPTION=Android Next Components: Cache, Task, Views, Widgets, Utils

http/src/main/java/com/mcxiaoke/next/http/ProgressRequestBody.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ public long contentLength() throws IOException {
3737
return body.contentLength();
3838
}
3939

40+
public RequestBody getBody() {
41+
return body;
42+
}
43+
44+
public ProgressListener getListener() {
45+
return listener;
46+
}
47+
4048
@Override
4149
public void writeTo(BufferedSink sink) throws IOException {
4250
if (buffer == null) {

0 commit comments

Comments
 (0)