Can I use different manifests for instant app and a regular application?
In more detail, I need to specify different classes \"App\" in the \"android:name=App\"
There are a few ways to do this:
If you must have two different manifests, then you will need to use tools:replace
, example:
Your installed-app module’s manifest:
Your feature module’s manifest:
When your installed-app is built, it will run with App
, and when your instant-app is built, it will run with AppFeat
. You can play with variations of this.
But it would be easier if you use isInstantApp() to branch off, in just one Application implementation.