Convert All your Gradle Dependencies into Functions — Android
This article is based on what I Learned today, As we already know we need to add a dependency in an android Gradle file, & we all do to divide them with comments to identify which dependency is for which purpose.
What if we can divide all our Gradle files into functions and call them in our dependencies section, instead of putting all your Gradle dependencies in one place and divide them with comments. Without wasting the time see the below screenshot how you gonna do this.
That’s it now you can convert all your dependency into functions without dividing them into comments.
If you want to learn more related to Android then check it out the below link: