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

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

Issue 29347926: Issue 4248 - Add codestyle check
Left Patch Set: commented out (not removed for now) inline conditional check Created Nov. 23, 2016, 12:06 p.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 | « build.gradle ('k') | libadblockplus-android-tests/build.gradle » ('j') | 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 21 5 compileSdkVersion 21
5 buildToolsVersion "25.0.0" 6 buildToolsVersion "25.0.0"
6 7
7 defaultConfig { 8 defaultConfig {
8 minSdkVersion 21 9 minSdkVersion 21
9 targetSdkVersion 21 10 targetSdkVersion 21
10 versionCode 2 11 versionCode 2
11 versionName "1.0.1" 12 versionName "1.0.1"
12 } 13 }
13 14
14 sourceSets { 15 sourceSets {
15 main { 16 main {
16 manifest.srcFile 'AndroidManifest.xml' 17 manifest.srcFile 'AndroidManifest.xml'
17 java.srcDirs = ['src'] 18 java.srcDirs = ['src']
18 resources.srcDirs = ['src'] 19 resources.srcDirs = ['src']
19 res.srcDirs = ['res'] 20 res.srcDirs = ['res']
20 assets.srcDirs = ['assets'] 21 assets.srcDirs = ['assets']
21 22
22 jni { 23 jni {
23 dependencies { 24 dependencies {
24 project ":libadblockplus-android" 25 project ":libadblockplus-android"
25 } 26 }
26 } 27 }
27 } 28 }
28 } 29 }
29 } 30 }
30 31
31
32
33 dependencies { 32 dependencies {
34 compile project(':libadblockplus-android') 33 compile project(':libadblockplus-android')
35 compile 'com.android.support:support-v4:21.0.3' 34 compile 'com.android.support:support-v4:21.0.3'
35 }
36
37 checkstyle {
38 toolVersion = '6.19'
39 }
40
41 task checkstyleMain(type: Checkstyle) {
42 ignoreFailures = true
43 showViolations = true
44 source 'src/org/adblockplus/'
45 exclude '**/gen/**'
46 exclude '**/R.java'
47 exclude '**/BuildConfig.java'
48 reports {
49 xml.destination "$project.buildDir/reports/checkstyle/main.xml"
50 }
51 classpath = files()
52 configFile = file("${rootProject.rootDir}/third_party/checkstyle/java/rules/ eyeo_production_checks.xml")
53 configProperties = [
54 "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/chec kstyle/java/res/header.txt")
55 ]
36 } 56 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld