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:
Yahor Berdnikau 2018-02-26 22:03:33 +01:00
parent 441f1d9832
commit 4952e1d240
3 changed files with 42 additions and 1 deletions

40
cache/build.gradle vendored Normal file
View File

@ -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
}
}

View File

@ -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'

View File

@ -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