-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
dependencies.gradle
59 lines (50 loc) · 1.88 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
53
54
55
56
57
58
59
allprojects {
repositories {
google()
mavenCentral()
}
}
ext {
// LIBRARY VERSION
androidVersionCode = 11
androidVersionName = '2.1.1'
// LIBRARY INFORMATION
libraryGroupId = 'com.mikhaellopez'
libraryArtifactId = 'rxanimation'
libraryVersion = androidVersionName
libraryName = "RxAnimation"
libraryDesc = "Simple way to animate your views on Android with Rx"
// ANDROID VERSION
androidCompileSdkVersion = 33
androidMinSdkVersion = 16
androidTargetSdkVersion = androidCompileSdkVersion
// KOTLIN
kotlinStdlib = "org.jetbrains.kotlin:kotlin-stdlib:${ext.kotlin_version}"
// ANDROID LIB
androidXAppCompat = "androidx.appcompat:appcompat:1.5.0"
cardView = "androidx.cardview:cardview:1.0.0"
// RX
rxAndroid = "io.reactivex.rxjava3:rxandroid:3.0.0"
rxJava = "io.reactivex.rxjava3:rxjava:3.1.5"
rxKotlin = "io.reactivex.rxjava3:rxkotlin:3.0.1"
rxBinding = "com.jakewharton.rxbinding4:rxbinding:4.0.0"
// UI
circleView = "com.mikhaellopez:circleview:1.4.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')
}
}
}
}
}