-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(hilt): Add limited dynamic feature module support for tests #5193
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,8 +17,9 @@ | |
| package dagger.hilt.processor.internal.optionvalues; | ||
|
|
||
| /** | ||
| * Valid Gradle project type values. Note that we exclude 'com.android.feature' as Hilt doesn't | ||
| * support it for now. | ||
| * Valid Gradle project type values. Note that 'com.android.dynamic-feature' (formerly | ||
| * 'com.android.feature') is supported in a limited capacity -- dynamic feature modules are | ||
| * treated as libraries and can only contribute test-specific graphs, not the main app graph. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we will want to enforce this, e.g. by having a lint check to ensures no This prevents cases where your DFM accidentally adds a new |
||
| */ | ||
| public enum GradleProjectType { | ||
| /** Project type is not set, e.g. Hilt Gradle Plugin not applied. */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a Gradle test to https://github.com/google/dagger/tree/master/javatests/artifacts/hilt-android to ensure we have test coverage for this.