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

Delta Between Two Patch Sets: libadblockplus-android/build.gradle

Issue 29347926: Issue 4248 - Add codestyle check
Left Patch Set: changed import order - `org.adblockplus` package first Created Dec. 2, 2016, 6:19 a.m.
Right Patch Set: moved 'third_party' to review https://codereview.adblockplus.org/29567648/ Created Oct. 6, 2017, 11:33 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « libadblockplus-android-webviewapp/build.gradle ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld