I have a project where I need to combine multiple android applications into one application, so the application will looks like a superapp.
Each application that I want to fuse has its own Application class, and have different purpose, for example in Application A its Application class initialize Hilt, SharedPreference, etc, and in Application B its Application class setting some SQL, etc
Each of these Applications has its different purpose too, so there's no connection between them
The question is, when an Android App only use one Application class, how can I compile the other Application class so each app can run seperately but still in my superapp?
I'm planning to use maven local to export my other app as a library and import them into my superapp using gradle
Other people already ask question about this, Solving multiple application classes from AAR libraries but I still don't get the answer yet