mirror of
https://github.com/ethauvin/android-about-box.git
synced 2025-04-25 10:47:10 -07:00
Added AboutBox library source code. Implemented IAnalytic and IDialog interfaces for custom usage.
This commit is contained in:
parent
8a88eb2217
commit
8b28ebfb79
56 changed files with 1296 additions and 0 deletions
50
library/quality.gradle
Normal file
50
library/quality.gradle
Normal file
|
@ -0,0 +1,50 @@
|
|||
apply plugin: 'findbugs'
|
||||
apply plugin: 'pmd'
|
||||
|
||||
findbugs {
|
||||
ignoreFailures = false
|
||||
reportsDir = file("$project.buildDir/outputs/")
|
||||
reportLevel = "medium"
|
||||
effort = "max"
|
||||
}
|
||||
|
||||
pmd {
|
||||
ignoreFailures = false
|
||||
reportsDir = file("$project.buildDir/outputs/")
|
||||
}
|
||||
|
||||
task findbugs(type: FindBugs, dependsOn: "assembleDebug") {
|
||||
description 'Run findbugs'
|
||||
group 'verification'
|
||||
|
||||
classes = fileTree("$project.buildDir/intermediates/classes/debug")
|
||||
source = fileTree('src/main/java')
|
||||
classpath = files()
|
||||
|
||||
effort = 'max'
|
||||
|
||||
excludeFilter = file("$project.projectDir/findbugs_exclude.xml")
|
||||
|
||||
reports {
|
||||
xml.enabled = false
|
||||
html.enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
task pmd(type: Pmd, dependsOn: "assembleDebug") {
|
||||
description 'Run pmd'
|
||||
group 'verification'
|
||||
|
||||
ruleSets = ["java-basic", "java-braces", "java-strings", "java-design", "java-unusedcode"]
|
||||
source = fileTree('src/main/java')
|
||||
|
||||
reports {
|
||||
xml.enabled = false
|
||||
html.enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
check.doLast {
|
||||
project.tasks.getByName("findbugs").execute()
|
||||
project.tasks.getByName("pmd").execute()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue