-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
dependencies.gradle
45 lines (38 loc) · 1.32 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()
jcenter()
}
}
ext {
// APP VERSION
androidVersionCode = 5
androidVersionName = '1.1.0'
// ANDROID VERSION
androidCompileSdkVersion = 29
androidMinSdkVersion = 16
androidTargetSdkVersion = 29
// KOTLIN
kotlinStdlib = "org.jetbrains.kotlin:kotlin-stdlib:${ext.kotlin_version}"
// ANDROID LIB
androidAppCompatXVersion = '1.1.0'
androidXAppCompat = "androidx.appcompat:appcompat:$androidAppCompatXVersion"
// MATERIAL DESIGN
materialDesignGroupId = "com.google.android.material"
materialDesignArtifactId = "material"
materialDesignVersion = '1.1.0'
materialDesign = "$materialDesignGroupId:$materialDesignArtifactId:$materialDesignVersion"
// 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')
}
}
}
}
}