-
-
Notifications
You must be signed in to change notification settings - Fork 410
/
dependencies.gradle
52 lines (44 loc) · 1.55 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
48
49
50
51
52
allprojects {
repositories {
google()
mavenCentral()
}
}
ext {
// LIBRARY VERSION
androidVersionCode = 20
androidVersionName = "4.3.1"
// LIBRARY INFORMATION
libraryGroupId = 'com.mikhaellopez'
libraryArtifactId = 'circularimageview'
libraryVersion = androidVersionName
libraryName = "CircularImageView"
libraryDesc = "This is an Android project allowing to realize a circular ImageView in the simplest way possible."
// ANDROID VERSION
androidCompileSdkVersion = 33
androidMinSdkVersion = 14
androidTargetSdkVersion = 33
// KOTLIN
kotlinStdlib = "org.jetbrains.kotlin:kotlin-stdlib:$ext.kotlin_version"
// ANDROID LIB
androidXAppCompat = "androidx.appcompat:appcompat:1.5.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')
}
}
}
}
}