forked from goweii/WanAndroid
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathversion.gradle
More file actions
25 lines (25 loc) · 1.36 KB
/
version.gradle
File metadata and controls
25 lines (25 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
String group = details.requested.group
String name = details.requested.name
if (group == 'androidx.annotation' && name == 'annotation') {
//details.useVersion rootProject.ext.versions.androidx_annotation
} else if (group == 'androidx.arch.core') {
//details.useVersion rootProject.ext.versions.androidx_arch
} else if (group == 'androidx.core') {
//details.useVersion rootProject.ext.versions.androidx_core
} else if (group == 'androidx.fragment' && name == 'fragment') {
//details.useVersion rootProject.ext.versions.androidx_fragment
} else if (group == 'androidx.lifecycle') {
//details.useVersion rootProject.ext.versions.androidx_lifecycle
} else if (group == 'androidx.multidex' && name == 'multidex') {
//details.useVersion rootProject.ext.versions.androidx_multidex
} else if (group == 'androidx.recyclerview' && name == 'recyclerview') {
//details.useVersion rootProject.ext.versions.androidx_recyclerview
} else if (group == 'androidx.room') {
//details.useVersion rootProject.ext.versions.androidx_room
}
}
}
}