Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | def ffLibs |
| 18 | if (hasProperty("libs")) { |
| 19 | ffLibs = libs |
| 20 | } else { |
| 21 | apply from: "${ext.supportRootFolder}/buildSrc/dependencies.gradle" |
| 22 | ffLibs = libs |
| 23 | } |
| 24 | def ffVersions = [:] |
Yigit Boyar | d32708b | 2017-04-24 15:36:03 -0700 | [diff] [blame] | 25 | ffVersions.kotlin = "1.1.1" |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 26 | ffVersions.auto_common = "0.6" |
| 27 | ffVersions.javapoet = "1.8.0" |
| 28 | ffVersions.compile_testing = "0.9" |
Yigit Boyar | d32708b | 2017-04-24 15:36:03 -0700 | [diff] [blame] | 29 | ffVersions.localize_maven = "1.2" |
Sergey Vasilinets | 7b9be8b | 2017-05-11 10:29:03 -0700 | [diff] [blame] | 30 | ffVersions.support_lib = "25.3.1" |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 31 | ffVersions.intellij_annotations = "12.0" |
| 32 | ffVersions.rxjava2 = "2.0.6" |
| 33 | ffVersions.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 |
| 36 | ffVersions.xerial = "3.16.1" |
| 37 | ffVersions.antlr = "4.5.3" |
Yigit Boyar | fa39059 | 2017-03-06 01:31:33 -0800 | [diff] [blame] | 38 | ffVersions.commons_codec = "1.10" |
Yigit Boyar | a64756a | 2017-03-20 17:26:17 -0700 | [diff] [blame] | 39 | ffVersions.gson = "2.8.0" |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 40 | |
| 41 | ffLibs.kotlin = [ |
| 42 | stdlib : "org.jetbrains.kotlin:kotlin-stdlib:$ffVersions.kotlin", |
| 43 | gradle_plugin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$ffVersions.kotlin" |
| 44 | ] |
| 45 | ffLibs.auto_common = "com.google.auto:auto-common:$ffVersions.auto_common" |
Yigit Boyar | fa39059 | 2017-03-06 01:31:33 -0800 | [diff] [blame] | 46 | ffLibs.apache = [ |
| 47 | commons : [ |
| 48 | codec : "commons-codec:commons-codec:$ffVersions.commons_codec" |
| 49 | ] |
| 50 | ] |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 51 | |
| 52 | def 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 | } |
| 62 | ffLibs.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 Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 69 | ffLibs.localize_maven = "com.android.databinding:localizemaven:$ffVersions.localize_maven" |
| 70 | ffLibs.javapoet = "com.squareup:javapoet:$ffVersions.javapoet" |
| 71 | ffLibs.antlr = "org.antlr:antlr4:$ffVersions.antlr" |
| 72 | ffLibs.xerial = "org.xerial:sqlite-jdbc:$ffVersions.xerial" |
| 73 | ffLibs.google_compile_testing = "com.google.testing.compile:compile-testing:$ffVersions.compile_testing" |
| 74 | ffLibs.ij_annotations = "com.intellij:annotations:$ffVersions.intellij_annotations" |
| 75 | ffLibs.reactive_streams = "org.reactivestreams:reactive-streams:$ffVersions.reactivestreams" |
| 76 | ffLibs.rx_java = "io.reactivex.rxjava2:rxjava:$ffVersions.rxjava2" |
Yigit Boyar | a64756a | 2017-03-20 17:26:17 -0700 | [diff] [blame] | 77 | ffLibs.gson = "com.google.code.gson:gson:$ffVersions.gson" |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 78 | |
| 79 | ext.tools = [:] |
| 80 | ext.tools.current_sdk = gradle.ext.currentSdk |
| 81 | ext.tools.build_tools_version = rootProject.ext.buildToolsVersion |
| 82 | ext.flatfoot = [:] |
Yigit Boyar | 54fbc2e | 2017-07-11 12:19:48 -0700 | [diff] [blame^] | 83 | ext.flatfoot.release_version = "1.0.0-alpha4" |
Yigit Boyar | 450ed38 | 2017-03-02 09:48:25 -0800 | [diff] [blame] | 84 | ext.flatfoot.min_sdk = 14 |