-
-
Notifications
You must be signed in to change notification settings - Fork 223
/
dependencies.gradle
47 lines (41 loc) · 1.34 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
47
allprojects {
repositories {
google()
mavenCentral()
}
}
ext {
// APP VERSION
androidVersionCode = 10
androidVersionName = '3.1.0'
libraryGroupId = 'com.mikhaellopez'
libraryArtifactId = 'circularprogressbar'
libraryVersion = androidVersionName
// ANDROID VERSION
androidCompileSdkVersion = 30
androidMinSdkVersion = 14
androidTargetSdkVersion = 30
// KOTLIN
kotlinStdlib = "org.jetbrains.kotlin:kotlin-stdlib:$ext.kotlin_version"
// ANDROID LIB
androidXAppCompat = "androidx.appcompat:appcompat:1.3.0"
// UI
lobsterPicker = "com.larswerkman:lobsterpicker:1.0.1"
// DEPENDENCY CHECK STRATEGY
dependencyUpdatesStrategy = {
def isNonStable = { String version ->
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { keyword ->
version.toUpperCase().contains(keyword)
}
def regex = /^[0-9,.v-]+(-r)?$/
return !stableKeyword && !(version ==~ regex)
}
componentSelection {
all {
if (isNonStable(it.candidate.version) && !isNonStable(it.currentVersion)) {
reject('Release candidate')
}
}
}
}
}