Maintaining Remote Git Sub-Modules in Android Apps

Siva Ganesh Kantamani
5 min readJun 27, 2021
Photo by Luke Chesser on Unsplash

Take away from this article

In this article, you’ll learn how maintain a remote sub-module in android projects. A remote sub-module is an android library module hosted on git as a repository that can be added as a sub-module to several projects. Along with that you’ll also learn why we need a remote sub-module and how to create one.

What’s a sub-module?

Let’s start from the basics, Consider an application with huge code-base and being maintained like forever. If you’re an android developer for a while, you would know the importance to separate things based on the purpose.

Consider a house without divisions like bedroom, kitchen, etc. I won’t say it won’t serve the purpose but we can do better. Dividing the shallow space with walls and labeling each room with specific purpose keeps it organized.

Likewise maintaining a huge project with a single module might serve the purpose but it would be messy. Similar to rooms for houses we’ve modules for android projects. We can create as many sub-modules as we need based on the purpose. For suppose we can create a core module to maintain platform specific things like core components such as base classes, extensions, etc which are essential to any basic project.

--

--