-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EarlyComponent is not created if test contains @BindValue #2789
Comments
Hi @ReginFell, Sorry, I couldn't reproduce this locally. Is it possible for you to create an example project that reproduces the issue? (Also, on an unrelated note, you may want to read the warning about using |
@bcorso yeah sure. To reproduce you can run For me when I run the test,
And if you remove
Everything works just fine |
Thanks for the repro case! I was able to reproduce this issue. I'll have a fix out shortly, but you'll have to wait until the next Hilt release to get it. Fwiw, this only happens when all of your tests have test-specific bindings (e.g. an // This test can be removed with the next Hilt release,
// which contains the fix for https://github.com/google/dagger/issues/2789
@HiltAndroidTest
class EmptyTest {} |
…bleAggregatingTask`. Due to the missing package in the aggregated packages list, the Hilt Gradle plugin was silently dropping `EarlyEntryPoint` metadata when `enableAggregatingTask = true`. See #2789 Added a new Gradle module as a regression test. Fixes #2789 RELNOTES=Fix #2789: Fixes issue with using EarlyEntryPoints being dropped when using `enableAggregatingTask` PiperOrigin-RevId: 387690285
In our project we have a
Service
which is init automatically.And test
And in gradle we add
kaptAndroidTest(hilt)
In this case if we run the test we receive:
But if we remove the @BindView
Everything works as expected and
EarlyComponent
can be retrieved.The text was updated successfully, but these errors were encountered: