-
Notifications
You must be signed in to change notification settings - Fork 2
/
versions.gradle
85 lines (71 loc) · 3.13 KB
/
versions.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
/**
* Shared file between builds so that they can all use the same dependencies and
* maven repositories.
**/
def androidVersions = [:]
androidVersions.minSdk = 21
androidVersions.compileSdk = 29
androidVersions.buildTools = '29.0.3'
androidVersions.targetSdk = 29
ext.androidVersions = androidVersions
ext.deps = [:]
def versions = [:]
versions.androidXAnnotations = "1.2.0"
versions.androidXAppCompact = "1.2.0"
versions.androidXConstraintLayout = "2.0.4"
versions.androidXCore = "1.3.2"
versions.androidXDataStore = "1.0.0-beta01"
versions.androidXTestEspresso = "3.3.0"
versions.androidXTestJunit = "1.1.2"
versions.archNavigationArchComponent = "2.3.5"
versions.dependencyUpdates = '0.38.0'
versions.detekt = "1.16.0"
versions.gradle = "4.2.0"
versions.gson = "2.8.6"
versions.material = "1.3.0"
versions.junit = "4.13.2"
versions.kotlin = "1.5.0"
versions.timber = "4.7.1"
versions.tooLargeTool = "915ad99e83"
ext.versions = versions
def deps = [:]
deps.gson = "com.google.code.gson:gson:$versions.gson"
deps.junit = "junit:junit:$versions.junit"
deps.material = "com.google.android.material:material:$versions.material"
deps.timber = "com.jakewharton.timber:timber:$versions.timber"
deps.tooLargeTool = "com.github.xmartlabs:toolargetool:$versions.tooLargeTool"
def kotlin = [:]
kotlin.core = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$versions.kotlin"
kotlin.coroutines = [:]
kotlin.coroutines.core = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.kotlinCoroutines"
kotlin.reflect = "org.jetbrains.kotlin:kotlin-reflect"
deps.kotlin = kotlin
def androidXTest = [:]
androidXTest.espresso = "androidx.test.espresso:espresso-core:$versions.androidXTestEspresso"
androidXTest.junit = "androidx.test.ext:junit:$versions.androidXTestJunit"
def androidXNavigation = [:]
androidXNavigation.fragment = "androidx.navigation:navigation-fragment-ktx:$versions.archNavigationArchComponent"
androidXNavigation.ui = "androidx.navigation:navigation-ui-ktx:$versions.archNavigationArchComponent"
def androidX = [:]
androidX.navigation = androidXNavigation
androidX.test = androidXTest
androidX.annotations = "androidx.annotation:annotation:$versions.androidXAnnotations"
androidX.appcompat = "androidx.appcompat:appcompat:$versions.androidXAppCompact"
androidX.constraintLayout = "androidx.constraintlayout:constraintlayout:$versions.androidXConstraintLayout"
androidX.core = "androidx.core:core-ktx:$versions.androidXCore"
androidX.dataStore = "androidx.datastore:datastore-preferences:$versions.androidXDataStore"
deps.androidX = androidX
ext.deps = deps
ext.buildscriptDeps = [:]
buildscriptDeps.detekt = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$versions.detekt"
buildscriptDeps.dependencyUpdates = "com.github.ben-manes:gradle-versions-plugin:$versions.dependencyUpdates"
buildscriptDeps.gradle = "com.android.tools.build:gradle:$versions.gradle"
buildscriptDeps.kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
ext.buildscriptDeps = buildscriptDeps
def addRepos(RepositoryHandler handler) {
handler.google()
handler.mavenCentral()
handler.gradlePluginPortal()
handler.maven { url "https://jitpack.io" }
}
ext.addRepos = this.&addRepos