-
Notifications
You must be signed in to change notification settings - Fork 117
Hilt
Shobhit Agarwal edited this page May 10, 2023
·
2 revisions
Notes related to usage of Hilt in the application
- Issue: https://github.com/google/ground-android/issues/1675
- Workaround: https://github.com/google/ground-android/pull/1676
Classes annotated with @AndroidEntryPoint
generate a java class (e.g. Hilt_*
) in the same package. JaCoCo plugin isn't aware of this byte transformation and therefore the coverage of the annotated class is reported as 0. To fix that, we need to extend the auto-generated class as mentioned in the above workaround until the issue is resolved by hilt/jacoco.