2014-09-17 20:51:45 +02:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
2013-08-07 11:35:51 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
2014-09-17 20:51:45 +02:00
|
|
|
jcenter()
|
2013-08-07 11:35:51 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2015-09-27 13:51:55 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:1.3.1'
|
2015-08-18 17:38:51 +02:00
|
|
|
classpath 'me.tatarka:gradle-retrolambda:3.2.2'
|
2014-05-30 21:11:44 +02:00
|
|
|
|
2014-09-17 20:51:45 +02:00
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
2014-06-15 20:21:31 +02:00
|
|
|
}
|
2013-08-07 11:35:51 +02:00
|
|
|
}
|
|
|
|
|
2014-09-17 20:51:45 +02:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
2014-07-06 12:37:43 +02:00
|
|
|
}
|
2014-10-14 18:41:13 +02:00
|
|
|
}
|
|
|
|
|
2015-09-05 17:40:17 +02:00
|
|
|
// Disable predex if requested (we can't predex in Circle CI
|
|
|
|
// See http://tools.android.com/tech-docs/new-build-system/tips#TOC-Improving-Build-Server-performance
|
|
|
|
// and https://circleci.com/docs/android
|
|
|
|
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
project.plugins.whenPluginAdded { plugin ->
|
|
|
|
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name)) {
|
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
} else if ("com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
|
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-14 18:41:13 +02:00
|
|
|
task wrapper(type: Wrapper) {
|
2015-05-12 13:41:58 +02:00
|
|
|
gradleVersion = '2.4'
|
2014-09-17 20:51:45 +02:00
|
|
|
}
|