mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-22 07:58:20 -05:00
Slight refactor
This commit is contained in:
parent
3460360017
commit
66a91efe8b
@ -3,23 +3,23 @@ apply plugin: 'kotlin'
|
|||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
|
|
||||||
def androidModule = project(':app')
|
def androidModule = project(':app')
|
||||||
|
def firstVariant = androidModule.android.applicationVariants.toList().first()
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile androidModule
|
compile androidModule
|
||||||
|
|
||||||
testCompile androidModule.android.applicationVariants.toList().first().javaCompile.classpath
|
testCompile firstVariant.javaCompile.classpath
|
||||||
testCompile androidModule.android.applicationVariants.toList().first().javaCompile.outputs.files
|
testCompile firstVariant.javaCompile.outputs.files
|
||||||
testCompile files(androidModule.plugins.findPlugin("com.android.application").getBootClasspath())
|
testCompile files(androidModule.plugins.findPlugin("com.android.application").getBootClasspath())
|
||||||
|
|
||||||
testCompile 'junit:junit:4.+'
|
testCompile 'junit:junit:4.+'
|
||||||
testCompile 'org.robolectric:robolectric:2.2'
|
testCompile 'org.robolectric:robolectric:+'
|
||||||
}
|
}
|
||||||
|
|
||||||
jacocoTestReport {
|
jacocoTestReport {
|
||||||
// Add Android sources/classes for coverage
|
// Add Android sources/classes for coverage
|
||||||
additionalSourceDirs files(androidModule.android.sourceSets.main.java.srcDirs)
|
additionalSourceDirs files(androidModule.android.sourceSets.main.java.srcDirs)
|
||||||
additionalClassDirs androidModule.android.applicationVariants
|
additionalClassDirs firstVariant.javaCompile.outputs.files
|
||||||
.toList().first().javaCompile.outputs.files
|
|
||||||
|
|
||||||
reports {
|
reports {
|
||||||
xml.enabled true
|
xml.enabled true
|
||||||
|
Loading…
Reference in New Issue
Block a user