Currently I am using a modular structure in my android apps. I am using namespaces in gradle files.
android {
namespace = "com.example.modulename"
}
By using namespaces, the resource files are separate and are not accessible in other modules. As a result, I have to redefine same resources in other modules.
I create a separate module called common-resources
and placed all shared resources in this module. And other modules depend on this module that require those resources.
I wanted to ask if there is a better approach for this or what modifications would could make the above shared approach better.