added DEV version to repo
This commit is contained in:
parent
1ef725ef20
commit
23e673bfdf
2135 changed files with 97033 additions and 21206 deletions
113
jacoco.gradle
113
jacoco.gradle
|
|
@ -1,4 +1,4 @@
|
|||
apply plugin: 'jacoco'
|
||||
apply plugin: "jacoco"
|
||||
|
||||
jacoco {
|
||||
toolVersion = "$jacoco_version"
|
||||
|
|
@ -10,7 +10,7 @@ subprojects {
|
|||
configurations.all {
|
||||
resolutionStrategy {
|
||||
eachDependency { details ->
|
||||
if ('org.jacoco' == details.requested.group) {
|
||||
if ("org.jacoco" == details.requested.group) {
|
||||
details.useVersion "$jacocoVersion"
|
||||
}
|
||||
}
|
||||
|
|
@ -20,9 +20,9 @@ subprojects {
|
|||
|
||||
project.afterEvaluate { project ->
|
||||
|
||||
tasks.withType(Test) {
|
||||
tasks.withType(Test).configureEach {
|
||||
jacoco.includeNoLocationClasses = true
|
||||
jacoco.excludes = ['jdk.internal.*']
|
||||
jacoco.excludes = ["jdk.internal.*"]
|
||||
}
|
||||
|
||||
final flavor = "Gplay"
|
||||
|
|
@ -39,57 +39,56 @@ project.afterEvaluate { project ->
|
|||
}
|
||||
|
||||
final fileFilter = [
|
||||
// data binding
|
||||
'**/databinding/*',
|
||||
'android/databinding/**/*.class',
|
||||
'**/android/databinding/*Binding.class',
|
||||
'**/android/databinding/*',
|
||||
'**/androidx/databinding/*',
|
||||
'**/BR.*',
|
||||
// android
|
||||
'**/R.class',
|
||||
'**/R$*.class',
|
||||
'**/BuildConfig.*',
|
||||
'**/Manifest*.*',
|
||||
'**/*Test*.*',
|
||||
'android/**/*.*',
|
||||
// kotlin
|
||||
'**/*MapperImpl*.*',
|
||||
'**/*$ViewInjector*.*',
|
||||
'**/*$ViewBinder*.*',
|
||||
'**/BuildConfig.*',
|
||||
'**/*Component*.*',
|
||||
'**/*BR*.*',
|
||||
'**/Manifest*.*',
|
||||
'**/*$Lambda$*.*',
|
||||
'**/*Companion*.*',
|
||||
'**/*Module*.*',
|
||||
'**/*Dagger*.*',
|
||||
'**/*Hilt*.*',
|
||||
'**/*MembersInjector*.*',
|
||||
'**/*_MembersInjector.class',
|
||||
'**/*_Factory*.*',
|
||||
'**/*_Provide*Factory*.*',
|
||||
'**/*Extensions*.*',
|
||||
// sealed and data classes
|
||||
'**/*$Result.*',
|
||||
'**/*$Result$*.*',
|
||||
// adapters generated by moshi
|
||||
'**/*JsonAdapter.*',
|
||||
// Hilt
|
||||
'**/*Module.kt',
|
||||
'**/di/**',
|
||||
'dagger.hilt.internal/*',
|
||||
'hilt_aggregated_deps/*',
|
||||
// data binding
|
||||
"**/databinding/*",
|
||||
"android/databinding/**/*.class",
|
||||
"**/android/databinding/*Binding.class",
|
||||
"**/android/databinding/*",
|
||||
"**/androidx/databinding/*",
|
||||
"**/BR.*",
|
||||
// android
|
||||
"**/R.class",
|
||||
"**/R\$*.class",
|
||||
"**/BuildConfig.*",
|
||||
"**/Manifest*.*",
|
||||
"**/*Test*.*",
|
||||
"android/**/*.*",
|
||||
// kotlin
|
||||
"**/*MapperImpl*.*",
|
||||
"**/*\$ViewInjector*.*",
|
||||
"**/*\$ViewBinder*.*",
|
||||
"**/BuildConfig.*",
|
||||
"**/*Component*.*",
|
||||
"**/*BR*.*",
|
||||
"**/Manifest*.*",
|
||||
"**/*\$Lambda\$*.*",
|
||||
"**/*Companion*.*",
|
||||
"**/*Module*.*",
|
||||
"**/*Dagger*.*",
|
||||
"**/*Hilt*.*",
|
||||
"**/*MembersInjector*.*",
|
||||
"**/*_MembersInjector.class",
|
||||
"**/*_Factory*.*",
|
||||
"**/*_Provide*Factory*.*",
|
||||
"**/*Extensions*.*",
|
||||
// sealed and data classes
|
||||
"**/*\$Result.*",
|
||||
"**/*\$Result\$*.*",
|
||||
// adapters generated by moshi
|
||||
"**/*JsonAdapter.*",
|
||||
// Hilt
|
||||
"**/*Module.kt",
|
||||
"**/di/**",
|
||||
"dagger.hilt.internal/*",
|
||||
"hilt_aggregated_deps/*",
|
||||
|
||||
'**/*$Result.*', /* filtering `sealed` and `data` classes */
|
||||
'**/*$Result$*.*',/* filtering `sealed` and `data` classes */
|
||||
'**/*Args*.*', /* filtering Navigation Component generated classes */
|
||||
'**/*Directions*.*', /* filtering Navigation Component generated classes */
|
||||
'**/*inlined*.class', /* filtering inlined classes */
|
||||
'**/composables/**'
|
||||
/* INSERT ANY OTHER JUNK YOU WANT FILTERED OUT HERE */
|
||||
]
|
||||
"**/*\$Result.*", /* filtering `sealed` and `data` classes */
|
||||
"**/*\$Result\$*.*",/* filtering `sealed` and `data` classes */
|
||||
"**/*Args*.*", /* filtering Navigation Component generated classes */
|
||||
"**/*Directions*.*", /* filtering Navigation Component generated classes */
|
||||
"**/*inlined*.class", /* filtering inlined classes */
|
||||
"**/composables/**"
|
||||
/* INSERT ANY OTHER JUNK YOU WANT FILTERED OUT HERE */]
|
||||
|
||||
final androidKotlinTree = fileTree(dir: "${project.buildDir}/tmp/kotlin-classes/${variant}", excludes: fileFilter)
|
||||
final kotlinTree = fileTree(dir: "${project.buildDir}/classes/kotlin/main", excludes: fileFilter)
|
||||
|
|
@ -101,9 +100,7 @@ project.afterEvaluate { project ->
|
|||
|
||||
sourceDirectories.setFrom files([mainSrc, productFlavorSrc, buildTypeSrc])
|
||||
classDirectories.setFrom files([androidKotlinTree, kotlinTree, javacTree])
|
||||
executionData.setFrom fileTree(dir: project.buildDir, includes: [
|
||||
"jacoco/test${variant.capitalize()}UnitTest.exec",
|
||||
"outputs/unit_test_code_coverage/${variant}UnitTest/test${variant.capitalize()}UnitTest.exec",
|
||||
])
|
||||
executionData.setFrom fileTree(dir: project.buildDir, includes: ["jacoco/test${variant.capitalize()}UnitTest.exec",
|
||||
"outputs/unit_test_code_coverage/${variant}UnitTest/test${variant.capitalize()}UnitTest.exec",])
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue