LEFT | RIGHT |
(no file at all) | |
1 apply plugin: 'com.android.library' | 1 apply plugin: 'com.android.library' |
| 2 apply plugin: 'checkstyle' |
2 | 3 |
3 android { | 4 android { |
4 compileSdkVersion 16 | 5 compileSdkVersion 16 |
5 buildToolsVersion "25.0.0" | 6 buildToolsVersion "25.0.0" |
6 | 7 |
7 defaultConfig { | 8 defaultConfig { |
8 minSdkVersion 11 | 9 minSdkVersion 11 |
9 targetSdkVersion 16 | 10 targetSdkVersion 16 |
10 versionCode 1 | 11 versionCode 1 |
11 versionName "1.0" | 12 versionName "1.0" |
12 | 13 |
13 ndk { | 14 ndk { |
14 abiFilters 'armeabi-v7a', 'x86' | 15 abiFilters 'armeabi-v7a', 'x86' |
| 16 } |
15 } | 17 } |
16 } | |
17 | 18 |
18 externalNativeBuild { | 19 externalNativeBuild { |
19 ndkBuild { | 20 ndkBuild { |
20 path 'jni/Android.mk' | 21 path 'jni/Android.mk' |
| 22 } |
21 } | 23 } |
22 } | |
23 | 24 |
24 sourceSets { | 25 sourceSets { |
25 main { | 26 main { |
26 manifest.srcFile 'AndroidManifest.xml' | 27 manifest.srcFile 'AndroidManifest.xml' |
27 java.srcDirs = ['src'] | 28 java.srcDirs = ['src'] |
28 res.srcDirs = ['res'] | 29 res.srcDirs = ['res'] |
29 jni.srcDirs = ['jni'] | 30 jni.srcDirs = ['jni'] |
| 31 } |
30 } | 32 } |
31 } | 33 } |
| 34 |
| 35 checkstyle { |
| 36 toolVersion = '6.19' |
| 37 } |
| 38 |
| 39 task checkstyleMain(type: Checkstyle) { |
| 40 ignoreFailures = true |
| 41 showViolations = true |
| 42 source 'src/org/adblockplus/' |
| 43 exclude '**/gen/**' |
| 44 exclude '**/R.java' |
| 45 exclude '**/BuildConfig.java' |
| 46 reports { |
| 47 xml.destination "$project.buildDir/reports/checkstyle/main.xml" |
| 48 } |
| 49 classpath = files() |
| 50 configFile = file("${rootProject.rootDir}/third_party/checkstyle/java/rules/
eyeo_production_checks.xml") |
| 51 configProperties = [ |
| 52 "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/chec
kstyle/java/res/header.txt") |
| 53 ] |
32 } | 54 } |
LEFT | RIGHT |