-
-
Notifications
You must be signed in to change notification settings - Fork 48
/
dependencies.gradle
executable file
·103 lines (90 loc) · 4.44 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
allprojects {
repositories {
google()
mavenCentral()
}
}
ext {
// APP VERSION
androidVersionCode = 8
androidVersionName = '1.1.3'
// ANDROID VERSION
androidCompileSdkVersion = 33
androidMinSdkVersion = 19
androidTargetSdkVersion = androidCompileSdkVersion
// DEFAULT INFO
packageAndroidJUnitRunner = "androidx.test.runner.AndroidJUnitRunner"
defaultFlavorDimensions = "default"
// ANDROID LIB
androidXCore = "androidx.core:core:1.8.0"
androidXAppCompat = "androidx.appcompat:appcompat:1.5.0"
androidXRecyclerView = "androidx.recyclerview:recyclerview:1.2.1"
androidXSwipeRefresh = "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
materialDesign = "com.google.android.material:material:1.6.1"
constraintLayout = "androidx.constraintlayout:constraintlayout:2.1.4"
multidex = "androidx.multidex:multidex:2.0.1"
// COMPONENTS
roomVersion = '2.4.3'
room = "androidx.room:room-runtime:$roomVersion"
roomCompiler = "androidx.room:room-compiler:$roomVersion"
// DAGGER
daggerVersion = '2.43.2'
dagger = "com.google.dagger:dagger:$daggerVersion"
daggerCompiler = "com.google.dagger:dagger-compiler:$daggerVersion"
// RX
rxBindingVersion = '4.0.0'
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:$rxBindingVersion"
rxBindingSwipeRefreshlayout = "com.jakewharton.rxbinding4:rxbinding-swiperefreshlayout:$rxBindingVersion"
// WEBSERVICES
retrofitVersion = '2.9.0'
retrofitConverterGson = "com.squareup.retrofit2:converter-gson:$retrofitVersion"
retrofitAdapterRxJava = "com.squareup.retrofit2:adapter-rxjava3:$retrofitVersion"
// DEBUG
chuckerVersion = '3.5.2'
timber = "com.jakewharton.timber:timber:5.0.1"
chuckerDebug = "com.github.chuckerteam.chucker:library:$chuckerVersion"
chuckerRelease = "com.github.chuckerteam.chucker:library-no-op:$chuckerVersion"
// TEST
junit = "junit:junit:4.13.2"
mockitoInline = "org.mockito:mockito-inline:4.7.0"
mockitoKotlin = "org.mockito.kotlin:mockito-kotlin:4.0.0"
// ANDROID TEST
androidXTestVersion = '1.4.0'
espressoVersion = '3.4.0'
multidexInstVersion = '2.0.0'
androidXTestJunit = "androidx.test.ext:junit:1.1.3"
androidXTestRunner = "androidx.test:runner:$androidXTestVersion"
androidXTestRules = "androidx.test:rules:$androidXTestVersion"
espressoCore = "androidx.test.espresso:espresso-core:$espressoVersion"
espressoIntents = "androidx.test.espresso:espresso-intents:$espressoVersion"
espressoContrib = "androidx.test.espresso:espresso-contrib:$espressoVersion"
multidexInstrumentation = "androidx.multidex:multidex-instrumentation:$multidexInstVersion"
// PROGUARD
proguardFolder = '../proguard/'
modelRules = proguardFolder + 'model-rules.pro'
supportRules = proguardFolder + 'support-rules.pro'
apacheRules = proguardFolder + 'apache-rules.pro'
gsonRules = proguardFolder + 'gson-rules.pro'
okhttp3Rules = proguardFolder + 'okhttp3-rules.pro'
retrofit2Rules = proguardFolder + 'retrofit2-rules.pro'
// 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')
}
}
}
}
}