-
Notifications
You must be signed in to change notification settings - Fork 586
/
dependencies.kt
107 lines (82 loc) · 3.74 KB
/
dependencies.kt
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
104
105
106
107
/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.chrisbanes.accompanist.buildsrc
object Versions {
const val ktlint = "0.39.0"
}
object Libs {
const val androidGradlePlugin = "com.android.tools.build:gradle:4.2.0-alpha16"
const val gradleMavenPublishPlugin = "com.vanniktech:gradle-maven-publish-plugin:0.13.0"
const val junit = "junit:junit:4.13"
object Kotlin {
const val version = "1.4.10"
const val stdlib = "org.jetbrains.kotlin:kotlin-stdlib:$version"
const val gradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$version"
const val binaryCompatibility = "org.jetbrains.kotlinx:binary-compatibility-validator:0.2.3"
}
object Dokka {
const val gradlePlugin = "org.jetbrains.dokka:dokka-gradle-plugin:${Kotlin.version}"
}
object Coroutines {
private const val version = "1.3.9"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val test = "org.jetbrains.kotlinx:kotlinx-coroutines-test:$version"
}
object AndroidX {
object Test {
private const val version = "1.2.0"
const val runner = "androidx.test:runner:$version"
const val rules = "androidx.test:rules:$version"
const val ext = "androidx.test.ext:junit:1.1.1"
const val espressoCore = "androidx.test.espresso:espresso-core:3.2.0"
}
object Compose {
const val snapshot = "6964664"
const val version = "1.0.0-SNAPSHOT"
@JvmStatic
val snapshotUrl: String
get() = when {
snapshot.isNotEmpty() -> {
"https://androidx.dev/snapshots/builds/$snapshot/artifacts/repository/"
}
else -> throw IllegalArgumentException("Snapshot version not set")
}
const val compiler = "androidx.compose.compiler:compiler:$version"
const val runtime = "androidx.compose.runtime:runtime:$version"
const val foundation = "androidx.compose.foundation:foundation:${version}"
const val layout = "androidx.compose.foundation:foundation-layout:${version}"
const val ui = "androidx.compose.ui:ui:${version}"
const val material = "androidx.compose.material:material:${version}"
const val tooling = "androidx.ui:ui-tooling:${version}"
const val test = "androidx.compose.ui:ui-test-junit4:${version}"
}
const val core = "androidx.core:core:1.2.0"
const val coreKtx = "androidx.core:core-ktx:1.2.0"
const val coreAlpha = "androidx.core:core:1.5.0-alpha04"
}
object Coil {
private const val version = "1.0.0"
const val coil = "io.coil-kt:coil:$version"
const val gif = "io.coil-kt:coil-gif:$version"
}
const val picasso = "com.squareup.picasso:picasso:2.8"
const val glide = "com.github.bumptech.glide:glide:4.11.0"
const val truth = "com.google.truth:truth:1.0.1"
object OkHttp {
const val okhttp = "com.squareup.okhttp3:okhttp:3.12.2"
const val mockWebServer = "com.squareup.okhttp3:mockwebserver:3.12.2"
}
}