File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
main/groovy/com/vanniktech/android/junit/jacoco
test/groovy/com/vanniktech/android/junit/jacoco Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,15 @@ class Generation implements Plugin<Project> {
153
153
}
154
154
155
155
static List<String > getExcludes (final JunitJacocoExtension extension ) {
156
- extension. excludes == null ? [' **/R.class' ,
156
+ extension. excludes == null ? [
157
+ ' **/R.class' ,
158
+ ' **/R2.class' , // ButterKnife Gradle Plugin
157
159
' **/R$*.class' ,
160
+ ' **/R2$*.class' , // ButterKnife Gradle Plugin
158
161
' **/*$$*' ,
159
- ' **/*$ViewInjector*.*' ,
160
- ' **/*$ViewBinder*.*' ,
162
+ ' **/*$ViewInjector*.*' , // Older ButterKnife Versions
163
+ ' **/*$ViewBinder*.*' , // Older ButterKnife Versions
164
+ ' **/*_ViewBinding*.*' , // Newer ButterKnife Versions
161
165
' **/BuildConfig.*' ,
162
166
' **/Manifest*.*' ,
163
167
' **/*$Lambda$*.*' , // Jacoco can not handle several "$" in class name.
Original file line number Diff line number Diff line change @@ -272,12 +272,15 @@ public class GenerationTest {
272
272
public void getExcludesDefault () {
273
273
final def excludes = Generation . getExcludes(new JunitJacocoExtension ())
274
274
275
- assert excludes. size == 15
275
+ assert excludes. size == 18
276
276
assert excludes. contains(' **/R.class' )
277
+ assert excludes. contains(' **/R2.class' )
277
278
assert excludes. contains(' **/R$*.class' )
279
+ assert excludes. contains(' **/R2$*.class' )
278
280
assert excludes. contains(' **/*$$*' )
279
281
assert excludes. contains(' **/*$ViewInjector*.*' )
280
282
assert excludes. contains(' **/*$ViewBinder*.*' )
283
+ assert excludes. contains(' **/*_ViewBinding*.*' )
281
284
assert excludes. contains(' **/BuildConfig.*' )
282
285
assert excludes. contains(' **/Manifest*.*' )
283
286
assert excludes. contains(' **/*$Lambda$*.*' )
You can’t perform that action at this time.
0 commit comments