blob: 755c3d093b86f34c33fe9cfcc082f14fea3a07e4 [file] [log] [blame]
Yigit Boyar450ed382017-03-02 09:48:25 -08001/*
2 * Copyright (C) 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
17def ffLibs
18if (hasProperty("libs")) {
19 ffLibs = libs
20} else {
21 apply from: "${ext.supportRootFolder}/buildSrc/dependencies.gradle"
22 ffLibs = libs
23}
24def ffVersions = [:]
Sergey Vasilinets39038d32017-07-19 17:14:42 -070025ffVersions.kotlin = "1.1.3"
Yigit Boyar450ed382017-03-02 09:48:25 -080026ffVersions.auto_common = "0.6"
27ffVersions.javapoet = "1.8.0"
Sergey Vasilinets0af2c3f2017-07-20 12:48:16 -070028ffVersions.compile_testing = "0.11"
Ian Lakeaea307c2017-07-24 15:47:59 -070029ffVersions.support_lib = "26.0.0"
Yigit Boyar450ed382017-03-02 09:48:25 -080030ffVersions.intellij_annotations = "12.0"
31ffVersions.rxjava2 = "2.0.6"
32ffVersions.reactivestreams = "1.0.0"
33// this Xerial version is newer than we want but we need it to fix
34// https://github.com/xerial/sqlite-jdbc/issues/97
35ffVersions.xerial = "3.16.1"
36ffVersions.antlr = "4.5.3"
Yigit Boyarfa390592017-03-06 01:31:33 -080037ffVersions.commons_codec = "1.10"
Yigit Boyara64756a2017-03-20 17:26:17 -070038ffVersions.gson = "2.8.0"
Sergey Vasilinets0af2c3f2017-07-20 12:48:16 -070039ffVersions.guava = "21.0"
shepshapard62693d72017-08-01 12:48:43 -070040ffVersions.jsr250 = "1.2"
Yigit Boyar450ed382017-03-02 09:48:25 -080041
42ffLibs.kotlin = [
43 stdlib : "org.jetbrains.kotlin:kotlin-stdlib:$ffVersions.kotlin",
44 gradle_plugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$ffVersions.kotlin"
45]
46ffLibs.auto_common = "com.google.auto:auto-common:$ffVersions.auto_common"
Yigit Boyarfa390592017-03-06 01:31:33 -080047ffLibs.apache = [
48 commons : [
49 codec : "commons-codec:commons-codec:$ffVersions.commons_codec"
50 ]
51]
Yigit Boyar450ed382017-03-02 09:48:25 -080052
53def getSupportLib(String name, String version, String artifactName = null) {
54 def sourceProject = findProject(name)
55 if (sourceProject != null) {
56 return sourceProject
57 }
58 if (artifactName == null) {
59 artifactName = name
60 }
61 return "com.android.support$artifactName:$version"
62}
63ffLibs.support = [
64 annotations : getSupportLib(":support-annotations", ffVersions.support_lib),
65 core_utils : getSupportLib(':support-core-utils', ffVersions.support_lib),
66 fragments : getSupportLib(':support-fragment', ffVersions.support_lib),
Ian Lake346607b2017-07-24 12:06:30 -070067 app_compat : getSupportLib(':appcompat-v7', ffVersions.support_lib),
68 design : getSupportLib(':design', ffVersions.support_lib),
69 recyclerview : getSupportLib(':recyclerview-v7', ffVersions.support_lib)
Yigit Boyar450ed382017-03-02 09:48:25 -080070]
71
Yigit Boyar450ed382017-03-02 09:48:25 -080072ffLibs.javapoet = "com.squareup:javapoet:$ffVersions.javapoet"
73ffLibs.antlr = "org.antlr:antlr4:$ffVersions.antlr"
74ffLibs.xerial = "org.xerial:sqlite-jdbc:$ffVersions.xerial"
75ffLibs.google_compile_testing = "com.google.testing.compile:compile-testing:$ffVersions.compile_testing"
76ffLibs.ij_annotations = "com.intellij:annotations:$ffVersions.intellij_annotations"
77ffLibs.reactive_streams = "org.reactivestreams:reactive-streams:$ffVersions.reactivestreams"
78ffLibs.rx_java = "io.reactivex.rxjava2:rxjava:$ffVersions.rxjava2"
Yigit Boyara64756a2017-03-20 17:26:17 -070079ffLibs.gson = "com.google.code.gson:gson:$ffVersions.gson"
Sergey Vasilinets0af2c3f2017-07-20 12:48:16 -070080ffLibs.guava= "com.google.guava:guava:$ffVersions.guava"
shepshapard62693d72017-08-01 12:48:43 -070081ffLibs.jsr250 = "javax.annotation:javax.annotation-api:$ffVersions.jsr250"
Yigit Boyar450ed382017-03-02 09:48:25 -080082
83ext.tools = [:]
84ext.tools.current_sdk = gradle.ext.currentSdk
85ext.tools.build_tools_version = rootProject.ext.buildToolsVersion
86ext.flatfoot = [:]
Yigit Boyar450ed382017-03-02 09:48:25 -080087ext.flatfoot.min_sdk = 14