mirror of
				https://github.com/MinimalBible/MinimalBible
				synced 2025-11-04 02:20:26 -05:00 
			
		
		
		
	Register the source files with Jacoco
Also remove a data class from the report
This commit is contained in:
		@ -35,7 +35,8 @@ def jacocoExcludes = [
 | 
				
			|||||||
        'com/todddavies/**',
 | 
					        'com/todddavies/**',
 | 
				
			||||||
		'com/cmwmobile/**',
 | 
							'com/cmwmobile/**',
 | 
				
			||||||
		'org/bspeice/minimalbible/R*',
 | 
							'org/bspeice/minimalbible/R*',
 | 
				
			||||||
		'**/*$$*'
 | 
					        '**/BookAdapter$ChapterInfo*',
 | 
				
			||||||
 | 
							'**/*$$*' // Dagger/Butterknife
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dependencies {
 | 
					dependencies {
 | 
				
			||||||
@ -71,7 +72,9 @@ jacocoTestReport {
 | 
				
			|||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		// And finally tell Jacoco to only include said files in the report
 | 
							// And finally tell Jacoco to only include said files in the report
 | 
				
			||||||
 | 
					        // For whatever reason, firstVariant.javaCompile.exclude(jacocoExcludes) doesn't work...
 | 
				
			||||||
        classDirectories = outputTree
 | 
					        classDirectories = outputTree
 | 
				
			||||||
 | 
					        sourceDirectories = files(androidModule.android.sourceSets.main.java.srcDirs)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    reports {
 | 
					    reports {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user