Skip to content

Commit 29adcd3

Browse files
committed
修改gradle配置
1 parent 595966e commit 29adcd3

File tree

14 files changed

+78
-138
lines changed

14 files changed

+78
-138
lines changed

app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dependencies {
5555
compile project(':mvchelper_testcase')
5656
compile project(':mvccoolhelper')
5757

58-
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
59-
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
60-
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
58+
compile 'com.squareup.leakcanary:leakcanary-android:1.5'
59+
// releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
60+
// testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
6161
}

app/src/main/java/com/shizhefei/test/controllers/mvchelpers/PullrefshActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import com.handmark.pulltorefresh.library.PullToRefreshListView;
2323
import com.shizhefei.mvc.MVCHelper;
2424
import com.shizhefei.mvc.MVCPullrefshHelper;
25-
import com.shizhefei.task.datasource.DataSources;
25+
//import com.shizhefei.task.datasource.DataSources;
2626
import com.shizhefei.test.models.datasource.BooksDataSource;
2727
import com.shizhefei.test.models.enties.Book;
2828
import com.shizhefei.test.models.task.InitTokenTask;
@@ -50,7 +50,7 @@ protected void onCreate(Bundle savedInstanceState) {
5050

5151
mvcHelper = new MVCPullrefshHelper<>(refreshListView);
5252
// 设置数据源
53-
mvcHelper.setDataSource(DataSources.concatWith(new InitTokenTask(), new BooksDataSource()));
53+
// mvcHelper.setDataSource(DataSources.concatWith(new InitTokenTask(), new BooksDataSource()));
5454
// 设置适配器
5555
mvcHelper.setAdapter(new BooksAdapter(this));
5656
// 加载数据

build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ buildscript {
88
// }
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:2.3.3'
12-
classpath 'com.novoda:bintray-release:0.3.4'
11+
classpath 'com.android.tools.build:gradle:3.1.4'
1312
// classpath "net.ltgt.gradle:gradle-errorprone-plugin:0.0.9"
1413
// NOTE: Do not place your application dependencies here; they belong
1514
// in the individual module build.gradle files

mvccoolhelper/build.gradle

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'//添加
32

43
android {
54
compileSdkVersion 25
@@ -30,12 +29,12 @@ dependencies {
3029
compile project(':mvchelper_library')
3130
}
3231

33-
//添加
34-
publish {
35-
userOrg = 'luckyjayce'//bintray.com用户名
36-
groupId = 'com.shizhefei'//jcenter上的路径
37-
artifactId = 'MVCHelper-CoolRefresh'//项目名称
38-
publishVersion = rootProject.ext.VERSION_NAME//版本号
39-
desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
40-
website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
41-
}
32+
////添加
33+
//publish {
34+
// userOrg = 'luckyjayce'//bintray.com用户名
35+
// groupId = 'com.shizhefei'//jcenter上的路径
36+
// artifactId = 'MVCHelper-CoolRefresh'//项目名称
37+
// publishVersion = rootProject.ext.VERSION_NAME//版本号
38+
// desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
39+
// website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
40+
//}

mvchelper_library/build.gradle

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'//添加
32
android {
43
compileSdkVersion 25
54
buildToolsVersion "25.0.0"
@@ -28,12 +27,12 @@ dependencies {
2827
provided 'com.android.support:recyclerview-v7:24.0.0'
2928
}
3029

31-
//添加
32-
publish {
33-
userOrg = 'luckyjayce'//bintray.com用户名
34-
groupId = 'com.shizhefei'//jcenter上的路径
35-
artifactId = 'MVCHelper-Library'//项目名称
36-
publishVersion = rootProject.ext.VERSION_NAME//版本号
37-
desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
38-
website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
39-
}
30+
////添加
31+
//publish {
32+
// userOrg = 'luckyjayce'//bintray.com用户名
33+
// groupId = 'com.shizhefei'//jcenter上的路径
34+
// artifactId = 'MVCHelper-Library'//项目名称
35+
// publishVersion = rootProject.ext.VERSION_NAME//版本号
36+
// desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
37+
// website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
38+
//}

mvchelper_okhttp/build.gradle

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'//添加
32

43
android {
54
compileSdkVersion 25
@@ -26,12 +25,12 @@ dependencies {
2625
provided 'com.squareup.okio:okio:1.9.0'
2726
}
2827

29-
//添加
30-
publish {
31-
userOrg = 'luckyjayce'//bintray.com用户名
32-
groupId = 'com.shizhefei'//jcenter上的路径
33-
artifactId = 'MVCHelper-OkHttp'//项目名称
34-
publishVersion = rootProject.ext.VERSION_NAME//版本号
35-
desc = 'MVCHelper 下的okhttp封装类库'//描述,不重要
36-
website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
37-
}
28+
////添加
29+
//publish {
30+
// userOrg = 'luckyjayce'//bintray.com用户名
31+
// groupId = 'com.shizhefei'//jcenter上的路径
32+
// artifactId = 'MVCHelper-OkHttp'//项目名称
33+
// publishVersion = rootProject.ext.VERSION_NAME//版本号
34+
// desc = 'MVCHelper 下的okhttp封装类库'//描述,不重要
35+
// website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
36+
//}

mvchelper_tasks/build.gradle

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'//添加
32

43
android {
54
compileSdkVersion 25
@@ -26,12 +25,12 @@ dependencies {
2625
provided 'com.squareup.okio:okio:1.9.0'
2726
}
2827

29-
//添加
30-
publish {
31-
userOrg = 'luckyjayce'//bintray.com用户名
32-
groupId = 'com.shizhefei'//jcenter上的路径
33-
artifactId = 'MVCHelper-Tasks'//项目名称
34-
publishVersion = rootProject.ext.VERSION_NAME//版本号
35-
desc = 'MVCHelper 下的Tasks类库'//描述,不重要
36-
website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
37-
}
28+
////添加
29+
//publish {
30+
// userOrg = 'luckyjayce'//bintray.com用户名
31+
// groupId = 'com.shizhefei'//jcenter上的路径
32+
// artifactId = 'MVCHelper-Tasks'//项目名称
33+
// publishVersion = rootProject.ext.VERSION_NAME//版本号
34+
// desc = 'MVCHelper 下的Tasks类库'//描述,不重要
35+
// website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
36+
//}

mvchelper_tasks/src/main/java/com/shizhefei/task/datasource/Datasources.java

-44
This file was deleted.

mvchelper_testcase/build.gradle

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'//添加
32

43
android {
54
compileSdkVersion 25
@@ -32,13 +31,13 @@ dependencies {
3231
compile project(':mvchelper_library')
3332
}
3433

35-
//添加
36-
publish {
37-
userOrg = 'luckyjayce'//bintray.com用户名
38-
groupId = 'com.shizhefei'//jcenter上的路径
39-
artifactId = 'MVCHelper-TestCase'//项目名称
40-
publishVersion = rootProject.ext.VERSION_NAME//版本号
41-
desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
42-
website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
43-
}
34+
////添加
35+
//publish {
36+
// userOrg = 'luckyjayce'//bintray.com用户名
37+
// groupId = 'com.shizhefei'//jcenter上的路径
38+
// artifactId = 'MVCHelper-TestCase'//项目名称
39+
// publishVersion = rootProject.ext.VERSION_NAME//版本号
40+
// desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
41+
// website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
42+
//}
4443

mvcpullrefshhelper/build.gradle

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'//添加
32

43
android {
54
compileSdkVersion 25
@@ -31,12 +30,12 @@ dependencies {
3130
compile project(':mvchelper_library')
3231
}
3332

34-
//添加
35-
publish {
36-
userOrg = 'luckyjayce'//bintray.com用户名
37-
groupId = 'com.shizhefei'//jcenter上的路径
38-
artifactId = 'MVCHelper-Pullrefresh'//项目名称
39-
publishVersion = rootProject.ext.VERSION_NAME//版本号
40-
desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
41-
website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
42-
}
33+
////添加
34+
//publish {
35+
// userOrg = 'luckyjayce'//bintray.com用户名
36+
// groupId = 'com.shizhefei'//jcenter上的路径
37+
// artifactId = 'MVCHelper-Pullrefresh'//项目名称
38+
// publishVersion = rootProject.ext.VERSION_NAME//版本号
39+
// desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
40+
// website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
41+
//}

mvcswiperefreshhelper/build.gradle

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'//添加
32

43
android {
54
compileSdkVersion 25
@@ -30,12 +29,12 @@ dependencies {
3029
compile project(':mvchelper_library')
3130
}
3231

33-
//添加
34-
publish {
35-
userOrg = 'luckyjayce'//bintray.com用户名
36-
groupId = 'com.shizhefei'//jcenter上的路径
37-
artifactId = 'MVCHelper-SwipeRefresh'//项目名称
38-
publishVersion = rootProject.ext.VERSION_NAME//版本号
39-
desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
40-
website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
41-
}
32+
////添加
33+
//publish {
34+
// userOrg = 'luckyjayce'//bintray.com用户名
35+
// groupId = 'com.shizhefei'//jcenter上的路径
36+
// artifactId = 'MVCHelper-SwipeRefresh'//项目名称
37+
// publishVersion = rootProject.ext.VERSION_NAME//版本号
38+
// desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
39+
// website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
40+
//}

mvcultrahelper/build.gradle

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'//添加
32

43
android {
54
compileSdkVersion 25
@@ -31,12 +30,12 @@ dependencies {
3130
compile project(':mvchelper_library')
3231
}
3332

34-
//添加
35-
publish {
36-
userOrg = 'luckyjayce'//bintray.com用户名
37-
groupId = 'com.shizhefei'//jcenter上的路径
38-
artifactId = 'MVCHelper-UltraRefresh'//项目名称
39-
publishVersion = rootProject.ext.VERSION_NAME//版本号
40-
desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
41-
website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
42-
}
33+
////添加
34+
//publish {
35+
// userOrg = 'luckyjayce'//bintray.com用户名
36+
// groupId = 'com.shizhefei'//jcenter上的路径
37+
// artifactId = 'MVCHelper-UltraRefresh'//项目名称
38+
// publishVersion = rootProject.ext.VERSION_NAME//版本号
39+
// desc = '实现下拉刷新,滚动底部自动加载更多,分页加载,自动切换显示网络失败布局,暂无数据布局,支持任意view,支持切换主流下拉刷新框架,真正的android MVC架构,listview,RecyclerView,refresh,loadmore'//描述,不重要
40+
// website = 'https://github.com/LuckyJayce/MVCHelper'//网站,不重要;尽量模拟github上的地址,例如我这样的;当然你有地址最好了
41+
//}

pulltorefresh_library/.gitignore

-1
This file was deleted.

pulltorefresh_library/src/main/res/values-zh/pull_refresh_strings.xml

-6
This file was deleted.

0 commit comments

Comments
 (0)