2013-05-25 23:14:46 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2014-07-26 18:06:20 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:0.12.2'
|
2014-08-29 06:09:56 +02:00
|
|
|
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
|
2013-05-25 23:14:46 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-08-29 06:09:56 +02:00
|
|
|
apply plugin: 'android-sdk-manager'
|
2014-07-26 18:06:20 +02:00
|
|
|
apply plugin: 'com.android.application'
|
2014-09-01 00:29:48 +02:00
|
|
|
apply plugin: 'checkstyle'
|
2013-05-25 23:14:46 +02:00
|
|
|
|
2014-08-29 06:09:56 +02:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
2013-05-25 23:14:46 +02:00
|
|
|
dependencies {
|
|
|
|
compile project(':plugins:Android-PullToRefresh:library')
|
|
|
|
compile project(':plugins:ckChangeLog:library')
|
|
|
|
compile project(':plugins:HoloColorPicker')
|
2014-03-26 23:05:45 +01:00
|
|
|
compile project(':plugins:openpgp-api-library')
|
2014-06-21 16:54:09 +02:00
|
|
|
compile 'com.android.support:support-v13:19.1.0'
|
2013-05-25 23:14:46 +02:00
|
|
|
compile fileTree(dir: 'libs', include: '*.jar')
|
|
|
|
}
|
|
|
|
|
2014-08-31 01:10:13 +02:00
|
|
|
project.ext.preDexLibs = !project.hasProperty('disablePreDex')
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
project.plugins.whenPluginAdded { plugin ->
|
|
|
|
if ("com.android.build.gradle.AppPlugin".equals(plugin.class.name) ||
|
|
|
|
"com.android.build.gradle.LibraryPlugin".equals(plugin.class.name)) {
|
|
|
|
project.android.dexOptions.preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-05-25 23:14:46 +02:00
|
|
|
android {
|
2014-01-26 17:01:07 +01:00
|
|
|
compileSdkVersion 19
|
2014-07-26 18:06:20 +02:00
|
|
|
buildToolsVersion '20.0.0'
|
2013-05-25 23:14:46 +02:00
|
|
|
|
2014-08-31 01:10:13 +02:00
|
|
|
dexOptions {
|
|
|
|
preDexLibraries = rootProject.ext.preDexLibs
|
|
|
|
}
|
|
|
|
|
2013-05-25 23:14:46 +02:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['src']
|
|
|
|
res.srcDirs = ['res']
|
2013-11-29 10:49:52 +01:00
|
|
|
assets.srcDirs = ['assets']
|
2013-05-25 23:14:46 +02:00
|
|
|
}
|
2013-05-26 01:46:55 +02:00
|
|
|
|
2014-04-06 16:36:43 +09:00
|
|
|
androidTest {
|
2013-05-26 01:46:55 +02:00
|
|
|
manifest.srcFile 'tests/AndroidManifest.xml'
|
|
|
|
java.srcDirs = ['tests/src']
|
2013-11-29 10:49:52 +01:00
|
|
|
assets.srcDirs = ['tests/assets']
|
2013-05-26 01:46:55 +02:00
|
|
|
}
|
2013-05-25 23:14:46 +02:00
|
|
|
}
|
2014-03-04 22:11:42 +01:00
|
|
|
|
2014-01-04 01:40:56 +01:00
|
|
|
|
2014-02-21 17:38:20 +01:00
|
|
|
// Do not abort build if lint finds errors
|
|
|
|
lintOptions {
|
|
|
|
abortOnError false
|
|
|
|
}
|
2014-01-04 01:40:56 +01:00
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
|
|
exclude 'META-INF/LICENSE'
|
|
|
|
exclude 'META-INF/NOTICE'
|
|
|
|
}
|
2013-05-25 23:14:46 +02:00
|
|
|
}
|
2014-04-29 21:48:51 +09:00
|
|
|
|
2014-09-01 00:29:48 +02:00
|
|
|
check.dependsOn 'checkstyle'
|
|
|
|
task checkstyle(type: Checkstyle) {
|
|
|
|
ignoreFailures = true
|
|
|
|
configFile file("config/checkstyle/checkstyle.xml")
|
|
|
|
|
|
|
|
source 'src'
|
|
|
|
include '**/*.java'
|
|
|
|
classpath = files()
|
|
|
|
}
|
|
|
|
|
2014-04-29 21:48:51 +09:00
|
|
|
task testsOnJVM(type :GradleBuild, dependsOn: assemble) {
|
|
|
|
buildFile = 'tests-on-jvm/build.gradle'
|
|
|
|
tasks = ['test']
|
|
|
|
}
|