mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 10:46:53 -04:00
Improved the tasks according to the new gradle.
This commit is contained in:
parent
0b4bc66858
commit
8cd58a8136
@ -64,7 +64,7 @@ class AllProjectConfigurer {
|
|||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
getByName("debug") {
|
getByName("debug") {
|
||||||
isTestCoverageEnabled = false
|
isTestCoverageEnabled = true
|
||||||
multiDexEnabled = true
|
multiDexEnabled = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,11 +22,12 @@ jacoco {
|
|||||||
toolVersion = "0.8.12"
|
toolVersion = "0.8.12"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(Test) {
|
tasks.withType(Test).configureEach {
|
||||||
jacoco.includeNoLocationClasses = true
|
jacoco.includeNoLocationClasses = true
|
||||||
}
|
}
|
||||||
|
|
||||||
task jacocoInstrumentationTestReport(type: JacocoReport, dependsOn: ['createDebugCoverageReport']) {
|
tasks.register('jacocoInstrumentationTestReport', JacocoReport) {
|
||||||
|
dependsOn = ['createDebugCoverageReport']
|
||||||
group "Reporting"
|
group "Reporting"
|
||||||
description "Generate Jacoco coverage reports."
|
description "Generate Jacoco coverage reports."
|
||||||
reports {
|
reports {
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
<issue id="InvalidPackage">
|
<issue id="InvalidPackage">
|
||||||
<ignore path="**simple-xml-2.7.1.jar" />
|
<ignore path="**simple-xml-2.7.1.jar" />
|
||||||
<ignore path="**javapoet-1.8.0.jar" />
|
<ignore path="**javapoet-1.8.0.jar" />
|
||||||
<ignore path="**/org.jacoco.agent-0.8.10-runtime.jar" />
|
<ignore path="**/org.jacoco.agent-0.8.12-runtime.jar" />
|
||||||
<ignore regexp="kotlinx.coroutines.debug.AgentPremain" />
|
<ignore regexp="kotlinx.coroutines.debug.AgentPremain" />
|
||||||
</issue>
|
</issue>
|
||||||
<issue id="IconLocation">
|
<issue id="IconLocation">
|
||||||
|
@ -28,5 +28,7 @@ task installGitHooks(type: Exec) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
tasks['preBuild'].dependsOn installGitHooks
|
tasks.named('preBuild').configure {
|
||||||
|
dependsOn installGitHooks
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user