2015-10-08 19:08:08 +02:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
2015-08-26 21:52:57 +02:00
|
|
|
apply plugin: 'com.android.application'
|
2015-10-08 19:08:08 +02:00
|
|
|
apply plugin: 'checkstyle'
|
2015-08-26 21:52:57 +02:00
|
|
|
|
2015-08-26 22:12:16 +02:00
|
|
|
dependencies {
|
|
|
|
compile project(':privileged-api-lib')
|
|
|
|
}
|
|
|
|
|
2015-08-26 21:52:57 +02:00
|
|
|
android {
|
|
|
|
compileSdkVersion 22
|
2015-11-05 11:59:05 +01:00
|
|
|
buildToolsVersion '23.0.2'
|
2015-08-26 21:52:57 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 8
|
|
|
|
targetSdkVersion 22
|
2016-01-19 15:27:44 +01:00
|
|
|
versionCode 1050
|
|
|
|
versionName "0.1"
|
2015-08-26 21:52:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
compileOptions.encoding = "UTF-8"
|
|
|
|
|
|
|
|
// Use Java 1.7, requires minSdk 8
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
// Do not abort build if lint finds errors
|
|
|
|
abortOnError false
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2015-10-08 19:08:08 +02:00
|
|
|
|
2015-11-30 10:35:19 +01:00
|
|
|
checkstyle {
|
2015-12-29 12:27:15 +01:00
|
|
|
toolVersion = '6.14'
|
2015-11-30 10:35:19 +01:00
|
|
|
}
|
|
|
|
|
2015-10-08 19:08:08 +02:00
|
|
|
task checkstyle(type: Checkstyle) {
|
|
|
|
configFile file("${project.rootDir}/config/checkstyle/checkstyle.xml")
|
|
|
|
source 'src'
|
|
|
|
include '**/*.java'
|
|
|
|
exclude '**/gen/**'
|
|
|
|
|
|
|
|
classpath = files()
|
|
|
|
}
|