-
-
Notifications
You must be signed in to change notification settings - Fork 164
/
dependencies.gradle
45 lines (39 loc) · 1.24 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
allprojects {
repositories {
google()
mavenCentral()
}
}
ext {
// APP VERSION
androidVersionCode = 5
androidVersionName = '1.4.0'
libraryGroupId = 'com.mikhaellopez'
libraryArtifactId = 'circularfillableloaders'
libraryVersion = androidVersionName
// ANDROID VERSION
androidCompileSdkVersion = 30
androidMinSdkVersion = 14
androidTargetSdkVersion = 30
// 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')
}
}
}
}
}