Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: libadblockplus-android/build.gradle

Issue 29347926: Issue 4248 - Add codestyle check
Patch Set: fixed broken url in rules Created April 28, 2017, 5:55 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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_checks.xml")
51 configProperties = [
52 "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/chec kstyle/java/res/header.txt")
53 ]
32 } 54 }
OLDNEW
« no previous file with comments | « libadblockplus-android-webviewapp/build.gradle ('k') | third_party/checkstyle/java/res/header.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld