Skip to content

Commit c022d59

Browse files
committed
Demo used v2.3.5
1 parent 91a1019 commit c022d59

3 files changed

Lines changed: 26 additions & 26 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ android:
2525

2626
script:
2727
- ./gradlew clean
28-
- ./gradlew install
29-
- ./gradlew bintrayUpload
28+
# - ./gradlew install
29+
# - ./gradlew bintrayUpload
3030
- ./gradlew assembleDebug

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ dependencies {
7070
//art
7171
implementation project(':art')
7272
//Github 仓库上最新的 Demo 具有下一个版本的新特性, 所以依赖最新的远程库会出现版本不兼容的情况, 详情请查看 https://github.com/JessYanCoding/MVPArms/wiki/Issues#2
73-
// implementation 'me.jessyan:art:2.3.1'
73+
// implementation 'me.jessyan:art:2.3.5'
7474
//test
7575
testImplementation rootProject.ext.dependencies["junit"]
7676
debugImplementation rootProject.ext.dependencies["canary-debug"]

art/build.gradle

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,81 +34,81 @@ buildscript {
3434

3535
dependencies {
3636
//support
37-
compile(rootProject.ext.dependencies["support-v4"]) {
37+
api(rootProject.ext.dependencies["support-v4"]) {
3838
exclude module: 'support-annotations'
3939
}
40-
compile(rootProject.ext.dependencies["appcompat-v7"]) {
40+
api(rootProject.ext.dependencies["appcompat-v7"]) {
4141
exclude module: 'support-annotations'
4242
exclude module: 'support-v4'
4343
}
44-
compile(rootProject.ext.dependencies["design"]) {
44+
api(rootProject.ext.dependencies["design"]) {
4545
exclude module: 'support-annotations'
4646
exclude module: 'appcompat-v7'
4747
exclude module: 'support-v4'
4848
}
49-
compile rootProject.ext.dependencies["annotations"]
49+
api rootProject.ext.dependencies["annotations"]
5050

5151
//view
52-
compile(rootProject.ext.dependencies["autolayout"]) {
52+
api(rootProject.ext.dependencies["autolayout"]) {
5353
exclude group: 'com.android.support'
5454
}
55-
compile(rootProject.ext.dependencies["butterknife"]) {
55+
api(rootProject.ext.dependencies["butterknife"]) {
5656
exclude module: 'support-annotations'
5757
}
5858

5959
//rx2
60-
compile rootProject.ext.dependencies["rxjava2"]
61-
compile(rootProject.ext.dependencies["rxandroid2"]) {
60+
api rootProject.ext.dependencies["rxjava2"]
61+
api(rootProject.ext.dependencies["rxandroid2"]) {
6262
exclude module: 'rxjava'
6363
}
64-
compile(rootProject.ext.dependencies["rxcache2"]) {
64+
api(rootProject.ext.dependencies["rxcache2"]) {
6565
exclude module: 'rxjava'
6666
exclude module: 'dagger'
6767
}
68-
compile(rootProject.ext.dependencies["rxcache-jolyglot-gson"]) {
68+
implementation(rootProject.ext.dependencies["rxcache-jolyglot-gson"]) {
6969
exclude module: 'gson'
7070
}
71-
compile(rootProject.ext.dependencies["rxpermissions2"]) {
71+
api(rootProject.ext.dependencies["rxpermissions2"]) {
7272
exclude module: 'rxjava'
7373
exclude module: 'support-annotations'
7474
}
75-
compile rootProject.ext.dependencies['rxerrorhandler2']
75+
api rootProject.ext.dependencies['rxerrorhandler2']
7676

7777
//network
78-
compile(rootProject.ext.dependencies["retrofit"]) {
78+
api(rootProject.ext.dependencies["retrofit"]) {
7979
exclude module: 'okhttp'
8080
exclude module: 'okio'
8181
}
82-
compile(rootProject.ext.dependencies["retrofit-converter-gson"]) {
82+
implementation(rootProject.ext.dependencies["retrofit-converter-gson"]) {
8383
exclude module: 'gson'
8484
exclude module: 'okhttp'
8585
exclude module: 'okio'
8686
exclude module: 'retrofit'
8787
}
88-
compile(rootProject.ext.dependencies["retrofit-adapter-rxjava2"]) {
88+
implementation(rootProject.ext.dependencies["retrofit-adapter-rxjava2"]) {
8989
exclude module: 'rxjava'
9090
exclude module: 'okhttp'
9191
exclude module: 'retrofit'
9292
exclude module: 'okio'
9393
}
94-
compile rootProject.ext.dependencies["okhttp3"]
95-
compile(rootProject.ext.dependencies["glide"]) {
94+
api rootProject.ext.dependencies["okhttp3"]
95+
api(rootProject.ext.dependencies["glide"]) {
9696
exclude module: 'support-v4'
9797
}
9898
annotationProcessor(rootProject.ext.dependencies["glide-compiler"]) {
9999
exclude module: 'jsr305'
100100
}
101101

102102
//tools
103-
provided rootProject.ext.dependencies["javax.annotation"]
104-
compile rootProject.ext.dependencies["dagger2"]
103+
compileOnly rootProject.ext.dependencies["javax.annotation"]
104+
api rootProject.ext.dependencies["dagger2"]
105105
annotationProcessor rootProject.ext.dependencies["dagger2-compiler"]
106-
compile rootProject.ext.dependencies["androideventbus"]
107-
compile rootProject.ext.dependencies["gson"]
106+
api rootProject.ext.dependencies["androideventbus"]
107+
api rootProject.ext.dependencies["gson"]
108108

109109
//test
110-
compile rootProject.ext.dependencies["timber"]
111-
testCompile rootProject.ext.dependencies["junit"]
110+
api rootProject.ext.dependencies["timber"]
111+
testApi rootProject.ext.dependencies["junit"]
112112
}
113113

114114

0 commit comments

Comments
 (0)