Skip to content

[Feature Request] Add limited dynamic feature support (for tests) #5089

Description

@AlexanderGH

When running the hilt plugin in a dynamic feature module, we get an error such as:

Failed to apply plugin 'com.google.dagger.hilt.android'.
> Hilt plugin does not know how to configure 'extension 'androidComponents''

Based on other issues, this seems expected since hilt doesn't support dynamic features. However, I think it still makes sense to support these modules for a limited set of features such as being able to write tests since while (IIUC) we can't contribute modules/bindings or modify the monolithic graph of the main app in any way, we should be able to create test-specific graphs so we can at least write tests in the dynamic feature (which iiuc can use entrypoints defined in the main app).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions