blob: 6335eb00bf267938273fbcf297fd2cd39f4aa335 [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"
28ffVersions.compile_testing = "0.9"
Yigit Boyard32708b2017-04-24 15:36:03 -070029ffVersions.localize_maven = "1.2"
Sergey Vasilinets7b9be8b2017-05-11 10:29:03 -070030ffVersions.support_lib = "25.3.1"
Yigit Boyar450ed382017-03-02 09:48:25 -080031ffVersions.intellij_annotations = "12.0"
32ffVersions.rxjava2 = "2.0.6"
33ffVersions.reactivestreams = "1.0.0"
34// this Xerial version is newer than we want but we need it to fix
35// https://github.com/xerial/sqlite-jdbc/issues/97
36ffVersions.xerial = "3.16.1"
37ffVersions.antlr = "4.5.3"
Yigit Boyarfa390592017-03-06 01:31:33 -080038ffVersions.commons_codec = "1.10"
Yigit Boyara64756a2017-03-20 17:26:17 -070039ffVersions.gson = "2.8.0"
Yigit Boyar450ed382017-03-02 09:48:25 -080040
41ffLibs.kotlin = [
42 stdlib : "org.jetbrains.kotlin:kotlin-stdlib:$ffVersions.kotlin",
43 gradle_plugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$ffVersions.kotlin"
44]
45ffLibs.auto_common = "com.google.auto:auto-common:$ffVersions.auto_common"
Yigit Boyarfa390592017-03-06 01:31:33 -080046ffLibs.apache = [
47 commons : [
48 codec : "commons-codec:commons-codec:$ffVersions.commons_codec"
49 ]
50]
Yigit Boyar450ed382017-03-02 09:48:25 -080051
52def getSupportLib(String name, String version, String artifactName = null) {
53 def sourceProject = findProject(name)
54 if (sourceProject != null) {
55 return sourceProject
56 }
57 if (artifactName == null) {
58 artifactName = name
59 }
60 return "com.android.support$artifactName:$version"
61}
62ffLibs.support = [
63 annotations : getSupportLib(":support-annotations", ffVersions.support_lib),
64 core_utils : getSupportLib(':support-core-utils', ffVersions.support_lib),
65 fragments : getSupportLib(':support-fragment', ffVersions.support_lib),
Chris Craik9fd8e612017-06-23 14:07:04 -070066 app_compat : getSupportLib(':support-appcompat-v7', ffVersions.support_lib, ":appcompat-v7"),
67 design : getSupportLib(':design', ffVersions.support_lib),
Yigit Boyar1e1347e2017-07-18 17:11:04 -070068 recyclerview : getSupportLib(':support-recyclerview-v7', ffVersions.support_lib, ":recyclerview-v7")
Yigit Boyar450ed382017-03-02 09:48:25 -080069]
70
Yigit Boyar450ed382017-03-02 09:48:25 -080071ffLibs.localize_maven = "com.android.databinding:localizemaven:$ffVersions.localize_maven"
72ffLibs.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"
Yigit Boyar450ed382017-03-02 09:48:25 -080080
81ext.tools = [:]
82ext.tools.current_sdk = gradle.ext.currentSdk
83ext.tools.build_tools_version = rootProject.ext.buildToolsVersion
84ext.flatfoot = [:]
Yigit Boyara1255f32017-07-18 11:07:46 -070085ext.flatfoot.release_version = "1.0.0-alpha5"
Yigit Boyar450ed382017-03-02 09:48:25 -080086ext.flatfoot.min_sdk = 14