@@ -34,91 +34,91 @@ buildscript {
34
34
35
35
dependencies {
36
36
// support
37
- compile (rootProject. ext. dependencies[" support-v4" ]) {
37
+ api (rootProject. ext. dependencies[" support-v4" ]) {
38
38
exclude module : ' support-annotations'
39
39
}
40
- compile (rootProject. ext. dependencies[" appcompat-v7" ]) {
40
+ api (rootProject. ext. dependencies[" appcompat-v7" ]) {
41
41
exclude module : ' support-annotations'
42
42
exclude module : ' support-v4'
43
43
}
44
- compile (rootProject. ext. dependencies[" design" ]) {
44
+ api (rootProject. ext. dependencies[" design" ]) {
45
45
exclude module : ' support-annotations'
46
46
exclude module : ' appcompat-v7'
47
47
exclude module : ' support-v4'
48
48
}
49
- compile rootProject. ext. dependencies[" annotations" ]
49
+ api rootProject. ext. dependencies[" annotations" ]
50
50
51
51
// view
52
- compile (rootProject. ext. dependencies[" autolayout" ]) {
52
+ api (rootProject. ext. dependencies[" autolayout" ]) {
53
53
exclude group : ' com.android.support'
54
54
}
55
- compile (rootProject. ext. dependencies[" butterknife" ]) {
55
+ api (rootProject. ext. dependencies[" butterknife" ]) {
56
56
exclude module : ' support-annotations'
57
57
}
58
58
59
59
// rx
60
- compile rootProject. ext. dependencies[" rxjava2" ]
61
- compile (rootProject. ext. dependencies[" rxandroid2" ]) {
60
+ api rootProject. ext. dependencies[" rxjava2" ]
61
+ api (rootProject. ext. dependencies[" rxandroid2" ]) {
62
62
exclude module : ' rxjava'
63
63
}
64
- compile (rootProject. ext. dependencies[" rxcache2" ]) {
64
+ api (rootProject. ext. dependencies[" rxcache2" ]) {
65
65
exclude module : ' rxjava'
66
66
exclude module : ' dagger'
67
67
}
68
- compile (rootProject. ext. dependencies[" rxcache-jolyglot-gson" ]) {
68
+ implementation (rootProject. ext. dependencies[" rxcache-jolyglot-gson" ]) {
69
69
exclude module : ' gson'
70
70
}
71
- compile (rootProject. ext. dependencies[" rxlifecycle2" ]) {
71
+ api (rootProject. ext. dependencies[" rxlifecycle2" ]) {
72
72
exclude module : ' rxjava'
73
73
exclude module : ' jsr305'
74
74
}
75
- compile (rootProject. ext. dependencies[" rxlifecycle2-android" ]) {
75
+ api (rootProject. ext. dependencies[" rxlifecycle2-android" ]) {
76
76
exclude module : ' support-annotations'
77
77
exclude module : ' rxjava'
78
78
exclude module : ' rxandroid'
79
79
exclude module : ' rxlifecycle'
80
80
}
81
- compile (rootProject. ext. dependencies[" rxpermissions2" ]) {
81
+ api (rootProject. ext. dependencies[" rxpermissions2" ]) {
82
82
exclude module : ' rxjava'
83
83
exclude module : ' support-annotations'
84
84
}
85
- compile rootProject. ext. dependencies[' rxerrorhandler2' ]
85
+ api rootProject. ext. dependencies[' rxerrorhandler2' ]
86
86
87
87
// network
88
- compile (rootProject. ext. dependencies[" retrofit" ]) {
88
+ api (rootProject. ext. dependencies[" retrofit" ]) {
89
89
exclude module : ' okhttp'
90
90
exclude module : ' okio'
91
91
}
92
- compile (rootProject. ext. dependencies[" retrofit-converter-gson" ]) {
92
+ implementation (rootProject. ext. dependencies[" retrofit-converter-gson" ]) {
93
93
exclude module : ' gson'
94
94
exclude module : ' okhttp'
95
95
exclude module : ' okio'
96
96
exclude module : ' retrofit'
97
97
}
98
- compile (rootProject. ext. dependencies[" retrofit-adapter-rxjava2" ]) {
98
+ implementation (rootProject. ext. dependencies[" retrofit-adapter-rxjava2" ]) {
99
99
exclude module : ' rxjava'
100
100
exclude module : ' okhttp'
101
101
exclude module : ' retrofit'
102
102
exclude module : ' okio'
103
103
}
104
- compile rootProject. ext. dependencies[" okhttp3" ]
105
- compile (rootProject. ext. dependencies[" glide" ]) {
104
+ api rootProject. ext. dependencies[" okhttp3" ]
105
+ api (rootProject. ext. dependencies[" glide" ]) {
106
106
exclude module : ' support-v4'
107
107
}
108
108
annotationProcessor(rootProject. ext. dependencies[" glide-compiler" ]) {
109
109
exclude module : ' jsr305'
110
110
}
111
111
112
112
// tools
113
- provided rootProject. ext. dependencies[" javax.annotation" ]
114
- compile rootProject. ext. dependencies[" dagger2" ]
113
+ compileOnly rootProject. ext. dependencies[" javax.annotation" ]
114
+ api rootProject. ext. dependencies[" dagger2" ]
115
115
annotationProcessor rootProject. ext. dependencies[" dagger2-compiler" ]
116
- compile rootProject. ext. dependencies[" androideventbus" ]
117
- compile rootProject. ext. dependencies[" gson" ]
116
+ api rootProject. ext. dependencies[" androideventbus" ]
117
+ api rootProject. ext. dependencies[" gson" ]
118
118
119
119
// test
120
- compile rootProject. ext. dependencies[" timber" ]
121
- testCompile rootProject. ext. dependencies[" junit" ]
120
+ api rootProject. ext. dependencies[" timber" ]
121
+ testApi rootProject. ext. dependencies[" junit" ]
122
122
}
123
123
124
124
0 commit comments