1
1
/*
2
2
* File: 'android_project_common.gradle'
3
3
* Location: https://raw.githubusercontent.com/yongce/AndroidLib/master/android_project_common.gradle
4
- * Version: 2020.07.19
4
+ * Version: 2021.10.1
5
5
* All android projects can copy and include this file.
6
6
*/
7
7
@@ -22,6 +22,8 @@ allprojects {
22
22
details. useVersion versions. lifecycle
23
23
} else if (details. requested. group == ' androidx.room' ) {
24
24
details. useVersion versions. room
25
+ } else if (details. requested. group == ' org.jetbrains.kotlin' ) {
26
+ details. useVersion versions. kotlin
25
27
}
26
28
}
27
29
}
@@ -33,84 +35,85 @@ ext {
33
35
34
36
versions = [
35
37
// compile
36
- ' compileSdk' : 30 ,
38
+ ' compileSdk' : 31 ,
37
39
38
40
// Android official support
39
- ' kotlin' : ' 1.3.72 ' ,
40
- ' kotlinCoroutine' : " 1.3.7 " ,
41
+ ' kotlin' : ' 1.5.31 ' ,
42
+ ' kotlinCoroutine' : " 1.4.1 " ,
41
43
' multidexLib' : " 2.0.1" ,
42
- ' androidxCore' : ' 1.3.0 ' ,
43
- ' fragment' : ' 1.2.4 ' ,
44
- ' preference' : " 1.1.0 " ,
44
+ ' androidxCore' : ' 1.3.2 ' ,
45
+ ' fragment' : ' 1.3.2 ' ,
46
+ ' preference' : " 1.1.1 " ,
45
47
' palette' : " 1.0.0" ,
46
- ' recyclerView' : " 1.1 .0" ,
47
- ' constraintLayout' : " 1.1.3 " ,
48
+ ' recyclerView' : " 1.2 .0" ,
49
+ ' constraintLayout' : " 2.0.4 " ,
48
50
' vectorDrawable' : " 1.1.0" ,
49
- ' lintLib' : ' 27 .0.0 ' ,
51
+ ' lintLib' : ' 30 .0.2 ' ,
50
52
' archCore' : " 2.1.0" ,
51
- ' lifecycle' : " 2.2.0 " ,
52
- ' room' : ' 2.2.5 ' ,
53
+ ' lifecycle' : " 2.3.1 " ,
54
+ ' room' : ' 2.2.6 ' ,
53
55
' sqlite' : " 2.1.0" ,
54
- ' navigation' : " 2.2.1 " ,
55
- ' paging' : " 2.1.1 " ,
56
- ' work' : " 2.3.3 " ,
57
- ' media2' : " 1.0.3 " ,
56
+ ' navigation' : " 2.3.5 " ,
57
+ ' paging' : " 2.1.2 " ,
58
+ ' work' : " 2.5.0 " ,
59
+ ' media2' : " 1.1.2 " ,
58
60
59
61
// test
60
- ' testCore' : " 1.2 .0" ,
61
- ' espresso' : " 3.2 .0" ,
62
+ ' testCore' : " 1.3 .0" ,
63
+ ' espresso' : " 3.3 .0" ,
62
64
' uiautomator' : " 2.2.0" ,
63
65
' truth' : ' 1.0.1' ,
64
66
' hamcrest' : ' 2.2' ,
65
- ' mockito' : " 2.19.0 " ,
67
+ ' mockito' : " 3.5.11 " ,
66
68
' powermock' : ' 1.6.6' ,
67
- ' robolectric' : ' 4.3 .1' ,
68
- ' mockk' : " 1.9.3 " ,
69
+ ' robolectric' : ' 4.5 .1' ,
70
+ ' mockk' : " 1.10.0 " ,
69
71
70
72
// google
71
73
' gms' : ' 18.0.0' ,
72
74
' wearableSupport' : " 2.3.0" ,
73
75
74
76
// infrastructure
75
- ' butterknife' : " 10.2.1 " ,
76
- ' timber' : " 4.7 .1" ,
77
+ ' butterknife' : " 10.2.3 " ,
78
+ ' timber' : " 5.0 .1" ,
77
79
' guava' : " 29.0-android" ,
78
80
79
81
// debug
80
- ' leakcanary' : " 1.6.3 " ,
82
+ ' leakcanary' : " 2.5 " ,
81
83
' stetho' : ' 1.5.1' ,
82
- ' ktlint' : " 0.36 .0" ,
84
+ ' ktlint' : " 0.41 .0" ,
83
85
84
86
// serializing
85
87
' gson' : ' 2.8.6' ,
86
88
' protobuf' : " 3.1.0" ,
87
89
88
90
// network & image
89
- ' okhttp' : ' 4.7.2 ' ,
91
+ ' okhttp' : ' 4.9.0 ' ,
90
92
' retrofit' : ' 2.9.0' ,
91
93
' glide' : ' 4.11.0' ,
92
- ' glideTrans' : " 4.0 .0" ,
94
+ ' glideTrans' : " 4.3 .0" ,
93
95
94
96
// rx
95
- ' rxjava' : " 2.2.6 " ,
97
+ ' rxjava' : " 2.2.12 " ,
96
98
' rxandroid' : " 2.1.1" ,
97
99
98
100
// ycdev
99
- ' androidLib' : " 1.8.1 " ,
101
+ ' androidLib' : " 2.0.0 " ,
100
102
101
103
// others
102
104
' zxing' : ' 3.4.0' ,
103
105
]
104
106
deps = [
105
107
// Android official support
106
108
' kotlin' : [
107
- ' stdlib' : " org.jetbrains.kotlin:kotlin-stdlib-jdk7:${ versions.kotlin} " ,
109
+ ' stdlib' : " org.jetbrains.kotlin:kotlin-stdlib-jdk8:${ versions.kotlin} " ,
110
+ ' reflect' : " org.jetbrains.kotlin:kotlin-reflect:${ versions.kotlin} " ,
108
111
' coroutinesCore' : " org.jetbrains.kotlinx:kotlinx-coroutines-core:${ versions.kotlinCoroutine} " ,
109
112
' coroutinesAndroid' : " org.jetbrains.kotlinx:kotlinx-coroutines-android:${ versions.kotlinCoroutine} "
110
113
],
111
114
' androidx' : [
112
115
// core
113
- ' annotation' : " androidx.annotation:annotation:1.1 .0" ,
116
+ ' annotation' : " androidx.annotation:annotation:1.2 .0" ,
114
117
' core' : " androidx.core:core:${ versions.androidxCore} " ,
115
118
' coreKtx' : " androidx.core:core-ktx:${ versions.androidxCore} " ,
116
119
' fragment' : " androidx.fragment:fragment:${ versions.fragment} " ,
@@ -119,8 +122,8 @@ ext {
119
122
' collection' : " androidx.collection:collection:1.1.0" ,
120
123
' collectionKtx' : " androidx.collection:collection-ktx:1.1.0" ,
121
124
// UI
122
- ' appcompat' : " androidx.appcompat:appcompat:1.1 .0" ,
123
- ' material' : " com.google.android.material:material:1.1 .0" ,
125
+ ' appcompat' : " androidx.appcompat:appcompat:1.2 .0" ,
126
+ ' material' : " com.google.android.material:material:1.3 .0" ,
124
127
' preference' : " androidx.preference:preference:${ versions.preference} " ,
125
128
' preferenceKtx' : " androidx.preference:preference-ktx:${ versions.preference} " ,
126
129
' constraintLayout' : " androidx.constraintlayout:constraintlayout:${ versions.constraintLayout} " ,
@@ -132,20 +135,20 @@ ext {
132
135
' recyclerviewSelection' : " androidx.recyclerview:recyclerview:${ versions.recyclerView} " ,
133
136
' percent' : " androidx.percentlayout:percentlayout:1.0.0" ,
134
137
' coordinatorLayout' : " androidx.coordinatorlayout:coordinatorlayout:1.1.0" ,
135
- ' drawerLayout' : " androidx.drawerlayout:drawerlayout:1.0.0 " ,
136
- ' swipeRefreshLayout' : " androidx.swiperefreshlayout:swiperefreshlayout:1.0 .0" ,
138
+ ' drawerLayout' : " androidx.drawerlayout:drawerlayout:1.1.1 " ,
139
+ ' swipeRefreshLayout' : " androidx.swiperefreshlayout:swiperefreshlayout:1.1 .0" ,
137
140
' viewPager' : " androidx.viewpager:viewpager:1.0.0" ,
138
141
' viewPager2' : " androidx.viewpager2:viewpager2:1.0.0" ,
139
142
' vectorDrawable' : " androidx.vectordrawable:vectordrawable:${ versions.vectorDrawable} " ,
140
143
' animatedVectorDrawable' : " androidx.vectordrawable:vectordrawable-animated:${ versions.vectorDrawable} " ,
141
- ' browser' : " androidx.browser:browser:1.0 .0" ,
142
- ' transition' : " androidx.transition:transition:1.3.1 " ,
144
+ ' browser' : " androidx.browser:browser:1.3 .0" ,
145
+ ' transition' : " androidx.transition:transition:1.4.0 " ,
143
146
// others
144
147
' multidex' : " androidx.multidex:multidex:${ versions.multidexLib} " ,
145
148
' mediaSession' : " androidx.media2:media2-session:${ versions.media2} " ,
146
149
' mediaExoPlayer' : " androidx.media2:media2-exoplayer:${ versions.media2} " ,
147
- ' mediarouter' : " androidx.mediarouter:mediarouter:1.1.0 " ,
148
- ' exifinterface' : " androidx.exifinterface:exifinterface:1.0.0 " ,
150
+ ' mediarouter' : " androidx.mediarouter:mediarouter:1.2.2 " ,
151
+ ' exifinterface' : " androidx.exifinterface:exifinterface:1.3.2 " ,
149
152
' wear' : " androidx.wear:wear:1.0.0" ,
150
153
// legacy
151
154
' coreUtils' : " androidx.legacy:legacy-support-core-utils:1.0.0" ,
@@ -217,9 +220,9 @@ ext {
217
220
' monitor' : " androidx.test:monitor:${ versions.testCore} " ,
218
221
' orchestrator' : " androidx.test:orchestrator:${ versions.testCore} " ,
219
222
// ext
220
- ' junit' : " androidx.test.ext:junit:1.1.1 " ,
221
- ' junitKtx' : " androidx.test.ext:junit-ktx:1.1.1 " ,
222
- ' truthAndroidX' : ' androidx.test.ext:truth:1.2.0 ' ,
223
+ ' junit' : " androidx.test.ext:junit:1.1.2 " ,
224
+ ' junitKtx' : " androidx.test.ext:junit-ktx:1.1.2 " ,
225
+ ' truthAndroidX' : " androidx.test.ext:truth:1.3.0 " ,
223
226
' truth' : " com.google.truth:truth:${ versions.truth} " ,
224
227
' truthJava8' : " com.google.truth.extensions:truth-java8-extension:${ versions.truth} " ,
225
228
// espresso
@@ -273,7 +276,8 @@ ext {
273
276
' glideTrans' : " jp.wasabeef:glide-transformations:${ versions.glideTrans} " ,
274
277
275
278
// UI
276
- ' flexbox' : " com.google.android:flexbox:2.0.1" ,
279
+ ' flexbox' : " com.google.android.flexbox:flexbox:3.0.0" ,
280
+ ' lottie' : " com.airbnb.android:lottie:3.4.4" ,
277
281
278
282
// rx
279
283
' rx' : [
@@ -283,10 +287,10 @@ ext {
283
287
284
288
// ycdev
285
289
' ycdev' : [
286
- ' androidBase' : " me.ycdev.android: common-base:${ versions.androidLib} " ,
287
- ' androidArch' : " me.ycdev.android: common-arch:${ versions.androidLib} " ,
288
- ' androidUi' : " me.ycdev.android: common-ui:${ versions.androidLib} " ,
289
- ' androidTest' : " me.ycdev.android: common-test:${ versions.androidLib} "
290
+ ' androidBase' : " io.github.yongce:android- common-base:${ versions.androidLib} " ,
291
+ ' androidArch' : " io.github.yongce:android- common-arch:${ versions.androidLib} " ,
292
+ ' androidUi' : " io.github.yongce:android- common-ui:${ versions.androidLib} " ,
293
+ ' androidTest' : " io.github.yongce:android- common-test:${ versions.androidLib} "
290
294
],
291
295
292
296
// others
0 commit comments