Relative Content

Tag Archive for androidgradledependencies

Import of nested dependencies from own library – good or bad practice?

I have two apps which are using Retrofit and Google Json. I created separate .aar library which has also these dependencies. I would like to remove mentions in build.gradle of my apps these dependencies and add only mentioning of my own lib for reducing general amount of dependencies. My library is downloaded from our Gitlab and has some other methods which are not connected with Retrofit and it works well. But when I’m trying to remove Retrofit dependencies from the target app it does not get any dependencies from my lib. I would like to know two answers when it’s possible: