-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Dependencies.kt
78 lines (67 loc) · 2.84 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
object BuildPluginsVersion {
val AGP = System.getenv("VERSION_AGP") ?: "7.1.0"
const val DOKKA = "1.4.32"
const val KOTLIN = "1.4.32"
const val AAR_2_JAR = "0.6"
const val KTLINT = "10.2.0"
// do not upgrade to 0.18.0, it does not generate the pom-default.xml and module.json under
// build/publications/maven
const val MAVEN_PUBLISH = "0.17.0"
const val PROGUARD = "7.1.0"
}
object LibsVersion {
const val JUNIT = "4.13.2"
const val ASM = "7.0" // compatibility matrix -> https://developer.android.com/reference/tools/gradle-api/7.1/com/android/build/api/instrumentation/InstrumentationContext#apiversion
const val SQLITE = "2.1.0"
const val SENTRY = "5.5.0"
}
object Libs {
val AGP = "com.android.tools.build:gradle:${BuildPluginsVersion.AGP}"
const val JUNIT = "junit:junit:${LibsVersion.JUNIT}"
const val PROGUARD = "com.guardsquare:proguard-gradle:${BuildPluginsVersion.PROGUARD}"
// bytecode instrumentation
const val ASM = "org.ow2.asm:asm-util:${LibsVersion.ASM}"
const val ASM_COMMONS = "org.ow2.asm:asm-commons:${LibsVersion.ASM}"
const val SQLITE = "androidx.sqlite:sqlite:${LibsVersion.SQLITE}"
const val SQLITE_FRAMEWORK = "androidx.sqlite:sqlite-framework:${LibsVersion.SQLITE}"
const val SENTRY_ANDROID = "io.sentry:sentry-android:${LibsVersion.SENTRY}"
// test
val MOCKITO_KOTLIN = "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
}
object CI {
fun canAutoUpload(): Boolean {
return System.getenv("AUTO_UPLOAD").toBoolean() &&
!System.getenv("SENTRY_AUTH_TOKEN").isNullOrEmpty()
}
}
object Samples {
object AndroidX {
const val recyclerView = "androidx.recyclerview:recyclerview:1.2.0"
const val lifecycle = "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
const val appcompat = "androidx.appcompat:appcompat:1.2.0"
}
object Coroutines {
private const val version = "1.5.1"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
}
object Room {
private const val version = "2.3.0"
const val runtime = "androidx.room:room-runtime:${version}"
const val ktx = "androidx.room:room-ktx:${version}"
const val compiler = "androidx.room:room-compiler:${version}"
const val rxjava = "androidx.room:room-rxjava2:${version}"
}
object OkHttp {
private const val version = "4.9.3"
const val okhttp = "com.squareup.okhttp3:okhttp:${version}"
}
object Timber {
private const val version = "5.0.1"
const val timber = "com.jakewharton.timber:timber:${version}"
}
object Fragment {
private const val version = "1.3.5"
const val fragmentKtx = "androidx.fragment:fragment-ktx:${version}"
}
}