Add new cache module.
This module will be responsible for temporary and permanent caching of any data. Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
parent
441f1d9832
commit
4952e1d240
|
@ -0,0 +1,40 @@
|
||||||
|
apply plugin: 'java-library'
|
||||||
|
apply plugin: 'kotlin'
|
||||||
|
apply plugin: 'jacoco'
|
||||||
|
apply from: '../gradle_scripts/code_quality.gradle'
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main.java.srcDirs += "${projectDir}/src/main/kotlin"
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
api other.kotlinStdlib
|
||||||
|
}
|
||||||
|
|
||||||
|
jacoco {
|
||||||
|
toolVersion(versions.jacoco)
|
||||||
|
}
|
||||||
|
|
||||||
|
ext {
|
||||||
|
jacocoExclude = []
|
||||||
|
}
|
||||||
|
|
||||||
|
jacocoTestReport {
|
||||||
|
reports {
|
||||||
|
html.enabled true
|
||||||
|
csv.enabled false
|
||||||
|
xml.enabled true
|
||||||
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
classDirectories = files(classDirectories.files.collect {
|
||||||
|
fileTree(dir: it, excludes: jacocoExclude)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
test.finalizedBy jacocoTestReport
|
||||||
|
test {
|
||||||
|
jacoco {
|
||||||
|
excludes += jacocoExclude
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
include ':library', ':subsonic-api'
|
include ':library', ':subsonic-api', ':cache'
|
||||||
include ':menudrawer'
|
include ':menudrawer'
|
||||||
include ':pulltorefresh'
|
include ':pulltorefresh'
|
||||||
include ':ultrasonic'
|
include ':ultrasonic'
|
||||||
|
|
|
@ -48,6 +48,7 @@ dependencies {
|
||||||
implementation project(':pulltorefresh')
|
implementation project(':pulltorefresh')
|
||||||
implementation project(':library')
|
implementation project(':library')
|
||||||
implementation project(':subsonic-api')
|
implementation project(':subsonic-api')
|
||||||
|
implementation project(':cache')
|
||||||
|
|
||||||
implementation androidSupport.support
|
implementation androidSupport.support
|
||||||
implementation androidSupport.design
|
implementation androidSupport.design
|
||||||
|
|
Loading…
Reference in New Issue