Skip to content

Commit a772d39

Browse files
author
zsy
committed
1.3.0
1 parent 795039d commit a772d39

File tree

2 files changed

+26
-15
lines changed

2 files changed

+26
-15
lines changed

README.md

+24-13
Original file line numberDiff line numberDiff line change
@@ -16,55 +16,66 @@ https://github.com/LuckyJayce/MVCHelper/releases
1616
## 1.必须导入: ##
1717

1818
//MVCHelper核心类库
19-
compile 'com.shizhefei:MVCHelper-Library:1.2.0'
19+
compile 'com.shizhefei:MVCHelper-Library:1.3.0'
2020
//里面有使用recyclerview,所以需要导入recyclerview
2121
compile 'com.android.support:recyclerview-v7:24.0.0'
2222

2323
## 2.可选: ##
24-
<1> 使用 https://github.com/LuckyJayce/CoolRefreshView 的刷新控件导入
24+
<1> 使用 https://github.com/LuckyJayce/CoolRefreshView 的刷新控件导入
2525
支持任意View的刷新 ,支持自定义Header,支持NestedScrollingParent,NestedScrollingChild的事件分发,嵌套ViewPager不会有事件冲突
26-
26+
2727
//里面包含一个MVCCoolHelper 是适配这个控件的 MVCHelper
28-
compile 'com.shizhefei:MVCHelper-CoolRefresh:1.2.0'
28+
compile 'com.shizhefei:MVCHelper-CoolRefresh:1.3.0'
2929
compile 'com.shizhefei:CoolRefreshView:1.0.1'
3030
compile 'com.android.support:support-v4:24.0.0'
3131

3232
<2> 使用 https://github.com/chrisbanes/Android-PullToRefresh 的刷新控件导入
33-
33+
3434
//里面包含一个MVCPullrefshHelper 是适配这个控件的 MVCHelper
35-
compile 'com.shizhefei:MVCHelper-Pullrefresh:1.2.0'
35+
compile 'com.shizhefei:MVCHelper-Pullrefresh:1.3.0'
3636
//由于没有找到gradle排至,我自己把它上传到jcenter上
3737
compile 'com.shizhefei:pulltorefresh:1.0.1'
3838

39-
<3> 使用 https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh 的刷新控件导入
39+
<3> 使用 https://github.com/liaohuqiu/android-Ultra-Pull-To-Refresh 的刷新控件导入
4040

4141
//里面包含一个MVCUltraHelper 是适配这个控件的 MVCHelper
42-
compile 'com.shizhefei:MVCHelper-UltraRefresh:1.2.0'
42+
compile 'com.shizhefei:MVCHelper-UltraRefresh:1.3.0'
4343
//这里6月29号目前最新的,要实时关注新版本去秋大的网站上去看
4444
compile 'in.srain.cube:ultra-ptr:1.0.11'
4545

46-
<4> 使用android v4的SwipeRefreshLayout的作为刷新控件导入
46+
<4> 使用android v4的SwipeRefreshLayout的作为刷新控件导入
4747

4848
//里面包含一个MVCSwipeRefreshHelper 是适配这个控件的 MVCHelper
49-
compile 'com.shizhefei:MVCHelper-SwipeRefresh:1.2.0'
49+
compile 'com.shizhefei:MVCHelper-SwipeRefresh:1.3.0'
5050
//v4包应该都有导入吧,v7包里面包含v4包
5151
compile 'com.android.support:support-v4:24.0.0'
5252

5353
<5> 测试用例,可以方便的查看MVCHelper,Task的运行情况和返回数据,还提供了修改接口字段,用于接口测试很方便哦
5454

5555
//MVCHelper的测试用例,继承ABSTestCaseFragment实现List<TestCaseData> getTestCaseDatas()方法
56-
compile 'com.shizhefei:MVCHelper-TestCase:1.2.0'
56+
compile 'com.shizhefei:MVCHelper-TestCase:1.3.0'
5757
//里面用到了gson
5858
compile 'com.google.code.gson:gson:2.2.4'
59-
59+
6060
<6> MVCHelper-OkHttp 对OKHttp的简单封装
6161

6262
//MVCHelper的 OKHttp的简单封装
63-
compile 'com.shizhefei:MVCHelper-OkHttp:1.2.0'
63+
compile 'com.shizhefei:MVCHelper-OkHttp:1.3.0'
6464
//里面用到了okhttp3
6565
compile 'com.squareup.okhttp3:okhttp:3.4.0'
6666
compile 'com.squareup.okio:okio:1.9.0'
6767

68+
<7> MVCHelper-Tasks 一些Task集合,支持类似RxJava的操作符处理多个Task
69+
比如先初始化token,然后再调用获取用户信息task
70+
71+
IAsyncTask<User> task = Tasks
72+
.create(new InitTokenTask())
73+
.concatWith(new GetUserTask()));
74+
导入方式
75+
76+
//MVCHelper的 Task操作集合
77+
compile 'com.shizhefei:MVCHelper-Tasks:1.3.0'
78+
6879
## 结构
6980
![image](raw/MVC.png)
7081
这里V和M是没有联系的,或许可以理解为是MVP结构吧.

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ allprojects {
2323
}
2424

2525
ext {
26-
VERSION_NAME = '1.3.0-alpha7'
27-
VERSION_CODE = 15
26+
VERSION_NAME = '1.3.0'
27+
VERSION_CODE = 13
2828
}
2929

3030

0 commit comments

Comments
 (0)