I am working on my Final year project, which is an android native app, using Kotlin. my question is how to connect firebase with all modules do I need to copy the JSON file in every module as well as add all the required dependencies in every module i.e. auth module, resources module, etc. I am confused about this I think this would be really hard to maintain.
Please give me some best suggestions on how to handle multi-module project effectively
2
Answers
No need to add dependency in each and every module, let’s just keep all the firebase related handling in separate
firebase
module and add that module in mainapp
module. Fromapp
module you can simply call the implementation infirebase
module and make it work.PS: please make sure the project you are gonna develop has to be multi-module. Not every app needs to develop on multi-module approach IMO.
As you are already having a multi module Android app, so you definitely must be having a base/core module on which all the other modules must be depending on.
There are 2 things you can do