This article is a translation of an article I wrote in French and published on Xebia blog.
When developing an Android application, we often, if not always, have to make network calls. So we regularly need to launch ourselves the backend application on our computer to develop and test.
However, our IP address is unique to each developer and forced them to change their build.gradle
. This change presents a risk since such modifications can be pushed on the Git repository and cause problems to the environment of other developers. Therefore, how do we make our Android app directly know our backend and therefore our local IP address?
Even better: is it possible to handle this directly on the build? This is what we will see in this short article.
Read more …