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 17def ffLibs 18if (hasProperty("libs")) { 19 ffLibs = libs 20} else { 21 apply from: "${ext.supportRootFolder}/buildSrc/dependencies.gradle" 22 ffLibs = libs 23} 24def ffVersions = [:] 25ffVersions.kotlin = "1.1.3" 26ffVersions.auto_common = "0.6" 27ffVersions.javapoet = "1.8.0" 28ffVersions.compile_testing = "0.11" 29ffVersions.support_lib = "26.1.0" 30ffVersions.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" 37ffVersions.commons_codec = "1.10" 38ffVersions.gson = "2.8.0" 39ffVersions.guava = "21.0" 40ffVersions.jsr250 = "1.2" 41 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" 47ffLibs.apache = [ 48 commons : [ 49 codec : "commons-codec:commons-codec:$ffVersions.commons_codec" 50 ] 51] 52 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), 67 app_compat : getSupportLib(':appcompat-v7', ffVersions.support_lib), 68 design : getSupportLib(':design', ffVersions.support_lib), 69 recyclerview : getSupportLib(':recyclerview-v7', ffVersions.support_lib) 70] 71 72ffLibs.support_exclude_config = { 73 exclude group: 'android.arch.core' 74 exclude group: 'android.arch.lifecycle' 75} 76 77ffLibs.javapoet = "com.squareup:javapoet:$ffVersions.javapoet" 78ffLibs.antlr = "org.antlr:antlr4:$ffVersions.antlr" 79ffLibs.xerial = "org.xerial:sqlite-jdbc:$ffVersions.xerial" 80ffLibs.google_compile_testing = "com.google.testing.compile:compile-testing:$ffVersions.compile_testing" 81ffLibs.ij_annotations = "com.intellij:annotations:$ffVersions.intellij_annotations" 82ffLibs.reactive_streams = "org.reactivestreams:reactive-streams:$ffVersions.reactivestreams" 83ffLibs.rx_java = "io.reactivex.rxjava2:rxjava:$ffVersions.rxjava2" 84ffLibs.gson = "com.google.code.gson:gson:$ffVersions.gson" 85ffLibs.guava= "com.google.guava:guava:$ffVersions.guava" 86ffLibs.jsr250 = "javax.annotation:javax.annotation-api:$ffVersions.jsr250" 87 88ext.tools = [:] 89ext.tools.current_sdk = gradle.ext.currentSdk 90ext.tools.build_tools_version = rootProject.ext.buildToolsVersion 91ext.flatfoot = [:] 92ext.flatfoot.min_sdk = 14 93