| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 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_checks.xml") | |
|
diegocarloslima
2017/04/27 12:58:44
Are we using the other checks files? It seems that
anton
2017/04/28 06:05:06
yes, here we use 'eyeo_checks' only. but since it'
| |
| 53 configProperties = [ | |
| 54 "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/chec kstyle/java/res/header.txt") | |
| 55 ] | |
| 36 } | 56 } |
| OLD | NEW |