Skip to content
This repository was archived by the owner on Oct 31, 2022. It is now read-only.

multiple <android:name=""> for instant app #1

@doanappdev

Description

@doanappdev

Hi I have been looking at how you have structured you instant app for dagger2.

I have a question about using dagger2 for multiple features, in your example you have
a feature module called 'query'. In the manifest file for that feature you have the following:
android:name=".QueryApplication"
in tag.

What happens if you have another feature module, is it possible to add dagger2 to the new feature module?

When I try setting "android:name=.SecondFeatureModule" in the new feature module manifest file, I get a compilation error saying AndroidManifest.xml file cannot have duplicate attributes i.e 'android:name=' is being added twice

Do you have any suggestions for resolving this?
Or does your example only work if you have 1 feature module for instant app?
Would you need to setup dagger2 differently if you had multiple feature modules?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions