Fracasso

Tudo faz parte da evolução, eu sou uma verdadeira confusão Gosto de estar no olho do furacão, estrada da ilusão Já me encontrei e já me perdi diversas vezes O passado é um estado vegetativo onde…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Tips To Start Modularizing Your Old Android App

We work with a legacy project whose development started more than 4 years ago by another company with other standards, practices and experiences.

Now we start to face a need: start modularizing the Android app to get all its advantages.

There are several benefits to having your app modularized:

When facing such a big challenge we tend to get overwhelmed, but the most important advice is to have patience. In the end, we will find the first step of the way and gradually we will be adding modules until we have it completely modularized.

In this article, we are not looking for a perfect recipe on how to modularize your app. Every project is different and approaching it with strict steps can be more of a problem than a solution. For example, if we were told that in our project we will start with the networking part, it would be chaotic and we would fail in the attempt to see that we have some dependencies in analytics and error display. Just to create these two modules that will use networking, we could lose a couple of weeks to have everything tested and make sure we have not broken anything. And back to the context, we don’t have these two weeks to focus on technical tasks. We must adapt to our situation and look for ways to add small modules to be able to address networking, and do it in the typical sprint endings with some space for external tasks.

As you can see, when using koin we have several dependencies that share version, and if we had to update it to solve some error, we only have to come here and not look in all the Gradle files that we have in each module of the project.

But, if we have many modules, we will have many build.gradle files and we can take advantage of the composition to save a lot of repeated code. If we define a file with the basic configuration of all the android modules, the only thing we will have to add in each file is a line of code and the particular dependencies of that one.

With this definition we can compose our dependencies in the new modules.

We can even take advantage of gradle to compose even more dependencies and not have to add or update many files when adding a new one shared by several modules.

Add a comment

Related posts:

How to Get Current View Name in Ionic Framework

Hi. I needed current view name to dynamic css changing in ionic framework. I’ve tried document.URL but it’s not worked. Do not use document.URL or others because you don’t need.

Updates to TSA Procedural Manual

Effective immediately, airport security agents will implement the following measures to ensure proper screening of all pre-born flyers, including fetuses, zygotes, cell clusters, and fertilized eggs…