blob: b09adfe597d02b93ff1d4aeeecb4f4fc00e485c1 [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 = [:]
Yigit Boyard32708b2017-04-24 15:36:03 -070025ffVersions.kotlin = "1.1.1"
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),
66 app_compat : getSupportLib(':support-appcompat-v7', ffVersions.support_lib, ":appcompat-v7")
67]
68
Yigit Boyar450ed382017-03-02 09:48:25 -080069ffLibs.localize_maven = "com.android.databinding:localizemaven:$ffVersions.localize_maven"
70ffLibs.javapoet = "com.squareup:javapoet:$ffVersions.javapoet"
71ffLibs.antlr = "org.antlr:antlr4:$ffVersions.antlr"
72ffLibs.xerial = "org.xerial:sqlite-jdbc:$ffVersions.xerial"
73ffLibs.google_compile_testing = "com.google.testing.compile:compile-testing:$ffVersions.compile_testing"
74ffLibs.ij_annotations = "com.intellij:annotations:$ffVersions.intellij_annotations"
75ffLibs.reactive_streams = "org.reactivestreams:reactive-streams:$ffVersions.reactivestreams"
76ffLibs.rx_java = "io.reactivex.rxjava2:rxjava:$ffVersions.rxjava2"
Yigit Boyara64756a2017-03-20 17:26:17 -070077ffLibs.gson = "com.google.code.gson:gson:$ffVersions.gson"
Yigit Boyar450ed382017-03-02 09:48:25 -080078
79ext.tools = [:]
80ext.tools.current_sdk = gradle.ext.currentSdk
81ext.tools.build_tools_version = rootProject.ext.buildToolsVersion
82ext.flatfoot = [:]
Yigit Boyar54fbc2e2017-07-11 12:19:48 -070083ext.flatfoot.release_version = "1.0.0-alpha4"
Yigit Boyar450ed382017-03-02 09:48:25 -080084ext.flatfoot.min_sdk = 14