Dependencies.kt revision 4d1752971fa4bf86f485ac743f6738a7cacd87af
1/*
2 * Copyright 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package androidx.build.dependencies
18
19import org.gradle.api.artifacts.ExternalModuleDependency
20import org.gradle.kotlin.dsl.exclude
21
22const val AUTO_COMMON = "com.google.auto:auto-common:0.6"
23const val ANTLR = "org.antlr:antlr4:4.5.3"
24const val APACHE_COMMONS_CODEC = "commons-codec:commons-codec:1.10"
25const val CONSTRAINT_LAYOUT = "androidx.constraintlayout:constraintlayout:1.1.0@aar"
26const val DEXMAKER_MOCKITO = "com.linkedin.dexmaker:dexmaker-mockito:2.2.0"
27const val ESPRESSO_CONTRIB = "com.android.support.test.espresso:espresso-contrib:3.0.1"
28const val ESPRESSO_CORE = "com.android.support.test.espresso:espresso-core:3.0.1"
29const val FIREBASE_JOBDISPATCHER = "com.firebase:firebase-jobdispatcher:0.8.5"
30const val GOOGLE_COMPILE_TESTING = "com.google.testing.compile:compile-testing:0.11"
31const val GSON = "com.google.code.gson:gson:2.8.0"
32const val GUAVA = "com.google.guava:guava:21.0"
33const val GUAVA_ANDROID = "com.google.guava:guava:23.6-android"
34const val INTELLIJ_ANNOTATIONS = "com.intellij:annotations:12.0"
35const val JAVAPOET = "com.squareup:javapoet:1.8.0"
36const val JSR250 = "javax.annotation:javax.annotation-api:1.2"
37const val JUNIT = "junit:junit:4.12"
38const val KOTLIN_STDLIB = "org.jetbrains.kotlin:kotlin-stdlib:1.2.20"
39const val KOTLIN_METADATA = "me.eugeniomarletti:kotlin-metadata:1.2.1"
40const val LINT = "com.android.tools.lint:lint:26.2.0-alpha13"
41const val MOCKITO_CORE = "org.mockito:mockito-core:2.7.6"
42const val MULTIDEX = "androidx.multidex:multidex:2.0.0"
43const val NULLAWAY = "com.uber.nullaway:nullaway:0.3.7"
44const val PLAY_SERVICES = "com.google.android.gms:play-services-base:11.6.0"
45const val REACTIVE_STREAMS = "org.reactivestreams:reactive-streams:1.0.0"
46const val RX_JAVA = "io.reactivex.rxjava2:rxjava:2.0.6"
47const val TEST_RUNNER = "com.android.support.test:runner:1.0.1"
48const val TEST_RULES = "com.android.support.test:rules:1.0.1"
49const val TRUTH = "com.google.truth:truth:0.34"
50/**
51 * this Xerial version is newer than we want but we need it to fix
52 * https://github.com/xerial/sqlite-jdbc/issues/97
53 * https://github.com/xerial/sqlite-jdbc/issues/267
54 */
55const val XERIAL = "org.xerial:sqlite-jdbc:3.20.1"
56const val XPP3 = "xpp3:xpp3:1.1.4c"
57const val XMLPULL = "xmlpull:xmlpull:1.1.3.1"
58
59const val ESPRESSO_CONTRIB_TMP = "com.android.temp.support.test.espresso:espresso-contrib:3.0.1"
60const val ESPRESSO_CORE_TMP = "com.android.temp.support.test.espresso:espresso-core:3.0.1"
61const val TEST_RUNNER_TMP = "com.android.temp.support.test:runner:1.0.1"
62const val TEST_RULES_TMP = "com.android.temp.support.test:rules:1.0.1"
63
64private const val NAV_SUPPORT_VERSION = "27.1.0"
65const val NAV_SUPPORT_ANNOTATIONS = "com.android.support:support-annotations:$NAV_SUPPORT_VERSION"
66const val NAV_SUPPORT_APPCOMPAT = "com.android.support:appcompat-v7:$NAV_SUPPORT_VERSION"
67const val NAV_SUPPORT_CARDVIEW = "com.android.support:cardview-v7:$NAV_SUPPORT_VERSION"
68const val NAV_SUPPORT_COMPAT = "com.android.support:support-compat:$NAV_SUPPORT_VERSION"
69const val NAV_SUPPORT_CORE_UTILS = "com.android.support:support-core-utils:$NAV_SUPPORT_VERSION"
70const val NAV_SUPPORT_DESIGN = "com.android.support:design:$NAV_SUPPORT_VERSION"
71const val NAV_SUPPORT_FRAGMENTS = "com.android.support:support-fragment:$NAV_SUPPORT_VERSION"
72const val NAV_SUPPORT_RECYCLERVIEW = "com.android.support:recyclerview-v7:$NAV_SUPPORT_VERSION"
73const val NAV_SUPPORT_V4 = "com.android.support:support-v4:$NAV_SUPPORT_VERSION"
74
75private const val SUPPORT_VERSION = "1.0.0-alpha1"
76const val SUPPORT_ANNOTATIONS = "androidx.annotation:annotation:$SUPPORT_VERSION"
77const val SUPPORT_APPCOMPAT = "androidx.appcompat:appcompat:$SUPPORT_VERSION"
78const val SUPPORT_CARDVIEW = "androidx.cardview:cardview:$SUPPORT_VERSION"
79const val SUPPORT_CORE_UTILS = "androidx.legacy:legacy-support-core-utils:$SUPPORT_VERSION"
80const val SUPPORT_DESIGN = "com.google.android.material:material:$SUPPORT_VERSION@aar"
81const val SUPPORT_FRAGMENTS = "androidx.fragment:fragment:$SUPPORT_VERSION"
82const val SUPPORT_RECYCLERVIEW = "androidx.recyclerview:recyclerview:$SUPPORT_VERSION"
83const val SUPPORT_V4 = "androidx.legacy:legacy-support-v4:$SUPPORT_VERSION"
84
85// Arch libraries
86const val ARCH_LIFECYCLE_RUNTIME = "androidx.lifecycle:lifecycle-runtime:2.0.0-alpha1@aar"
87const val ARCH_LIFECYCLE_LIVEDATA_CORE =
88        "androidx.lifecycle:lifecycle-livedata-core:2.0.0-alpha1@aar"
89const val ARCH_LIFECYCLE_VIEWMODEL = "androidx.lifecycle:lifecycle-viewmodel:2.0.0-alpha1@aar"
90const val ARCH_LIFECYCLE_EXTENSIONS = "androidx.lifecycle:lifecycle-extensions:2.0.0-alpha1@aar"
91
92// Excludes
93val ESPRESSO_EXCLUDE: ExternalModuleDependency.() -> Unit = {
94    exclude(group = "androidx.annotation")
95    exclude(group = "androidx.appcompat")
96    exclude(group = "androidx.recyclerview")
97    exclude(group = "androidx.legacy")
98}
99
100val BYTEBUDDY_EXCLUDE: ExternalModuleDependency.() -> Unit = {
101    exclude(group = "net.bytebuddy")
102}
103