Just like every other Android project, we start with a single :app module. At the time we didn’t have many features, the codebase was small and compact, everything was good. Time goes by, we have more features in the project, our leader realizes this will soon become a problem so he split the project into multiple modules. Parallel builds were great, we were very happy with the result. Time goes by again, business grows, more and more features have been added to the project at the point we have 60+ modules in the project. When making changes on a single module, although other modules didn’t have to recompile, Gradle still spends some time to check whether it needs to recompile that module. And it turns out, checking 60+ modules takes a huge amount of time, build time just gets longer and longer.
Report Story
Trending now