forked from lopspower/CircularImageView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdependencies.gradle
46 lines (39 loc) · 1.35 KB
/
dependencies.gradle
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
allprojects {
repositories {
google()
jcenter()
}
}
ext {
// APP VERSION
androidVersionCode = 18
androidVersionName = "4.2.0"
// ANDROID VERSION
androidCompileSdkVersion = 29
androidMinSdkVersion = 14
androidTargetSdkVersion = 29
// KOTLIN
kotlinStdlibGroupId = "org.jetbrains.kotlin"
kotlinStdlibArtifactId = "kotlin-stdlib"
kotlinStdlibVersion = ext.kotlin_version
kotlinStdlib = "$kotlinStdlibGroupId:$kotlinStdlibArtifactId:$kotlinStdlibVersion"
// ANDROID LIB
androidAppCompatXVersion = '1.1.0'
androidXAppCompat = "androidx.appcompat:appcompat:$androidAppCompatXVersion"
// UI
lobsterPickerVersion = '1.0.1'
lobsterPicker = "com.larswerkman:lobsterpicker:$lobsterPickerVersion"
// DEPENDENCY CHECK STRATEGY
dependencyUpdatesStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}
}